diff --git a/packages/gatsby-plugin-react-helmet/src/__mocks__/react-helmet.js b/packages/gatsby-plugin-react-helmet/src/__mocks__/react-helmet.js index be3799b326f2f..9fa11e50cb351 100644 --- a/packages/gatsby-plugin-react-helmet/src/__mocks__/react-helmet.js +++ b/packages/gatsby-plugin-react-helmet/src/__mocks__/react-helmet.js @@ -7,6 +7,7 @@ const helmet = { noscript: { toComponent: () => `noscript-component` }, script: { toComponent: () => `script-component` }, style: { toComponent: () => `style-component` }, + base: { toComponent: () => `base-component` }, } module.exports = { diff --git a/packages/gatsby-plugin-react-helmet/src/__tests__/gatsby-ssr.js b/packages/gatsby-plugin-react-helmet/src/__tests__/gatsby-ssr.js index add2a7de060be..493f0a57eb712 100644 --- a/packages/gatsby-plugin-react-helmet/src/__tests__/gatsby-ssr.js +++ b/packages/gatsby-plugin-react-helmet/src/__tests__/gatsby-ssr.js @@ -24,6 +24,7 @@ describe(`gatsby-plugin-react-helmet`, () => { `noscript-component`, `script-component`, `style-component`, + `base-component`, ]) }) diff --git a/packages/gatsby-plugin-react-helmet/src/gatsby-ssr.js b/packages/gatsby-plugin-react-helmet/src/gatsby-ssr.js index 6b4b7b5c1e677..f42476e5abef0 100644 --- a/packages/gatsby-plugin-react-helmet/src/gatsby-ssr.js +++ b/packages/gatsby-plugin-react-helmet/src/gatsby-ssr.js @@ -20,5 +20,6 @@ export const onRenderBody = ({ helmet.noscript.toComponent(), helmet.script.toComponent(), helmet.style.toComponent(), + helmet.base.toComponent(), ]) }