Gatsby not working well when disabled javascript #30866
-
DescriptionI am trying find seo errors on my website by disableing java script how actual bots see my site this shows wired result. Steps to reproduceI used common layout file to provide navbar and fotter to all my pages as like export default function Layout(props) {
return(
<>
<NavBar/>
{props.children}
<FotterBar/>
</>
)
} and it linked to gatsby-browser.js export const wrapPageElement = ({ element, props }) => {
return <Layout {...props}>{element}</Layout>;
}; Expected resultI want to render both navbar bar and fotter bar along with content when disable java script on browser Actual resultBut it only render |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
https://www.gatsbyjs.com/docs/reference/config-files/gatsby-browser/#wrapPageElement
Adding the same code from |
Beta Was this translation helpful? Give feedback.
https://www.gatsbyjs.com/docs/reference/config-files/gatsby-browser/#wrapPageElement
Adding the same code from
gatsby-browser.js
togatsby-ssr.js
should fix your issue