Skip to content

Commit

Permalink
feat(gatsby-plugin-react-helmet): add support for base tag (#16325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nighthawk14 authored and wardpeet committed Aug 2, 2019
1 parent 8ab74b2 commit 7325346
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const helmet = {
noscript: { toComponent: () => `noscript-component` },
script: { toComponent: () => `script-component` },
style: { toComponent: () => `style-component` },
base: { toComponent: () => `base-component` },
}

module.exports = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe(`gatsby-plugin-react-helmet`, () => {
`noscript-component`,
`script-component`,
`style-component`,
`base-component`,
])
})

Expand Down
1 change: 1 addition & 0 deletions packages/gatsby-plugin-react-helmet/src/gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ export const onRenderBody = ({
helmet.noscript.toComponent(),
helmet.script.toComponent(),
helmet.style.toComponent(),
helmet.base.toComponent(),
])
}

0 comments on commit 7325346

Please sign in to comment.