-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore layout for page not found when navigating from other page #2980
Conversation
Deploy preview ready! Built with commit 478896f |
Deploy preview ready! Built with commit 478896f |
@KyleAMathews Is the 404 development page meant to have styling if layout exist? Image below is the current how the development page looks like: |
The dev 404 page should be surrounded by the layout component yes :-) |
Hmm doesn't seem to be working — if you go to https://deploy-preview-2980--using-javascript-transforms.netlify.com/sdfjsdf then click on a link and then click back the layout disappears. |
Hmm that's interesting. Is there by any chance if we can to rebuild the If you don't mind, I'll sort out the dev-404 page as well in this branch too, later on 😄 |
Oh hmm that could be why — I noticed our Netlify script isn't updating any of the Gasby runtime files in .cache (part of why #3039 broke us earlier). I'll test this locally. |
Let's do the dev-404 fix on another PR — PRs are much easier to review/merge if they're small and focused. Thanks for all your help fixing these things! |
Ah, I see. Didn't know that the build script was broken for some reason. Thought that we would need to manually trigger the build if anything regards to Yup, sure. I'd figure you would prefer to have the 404-dev to be fixed in another PR. I'll work on it later today and send a separate PR 😄 Don't thank me though. I should thank you for giving this opportunity and the amazing craftsmanship that you have with Gatsby. |
Ok, worked perfectly when tested locally! Thanks! |
@KyleAMathews awesome! 🎉 I'll get the 404-dev work done later on 😄 Thanks! |
…tsbyjs#2980) * Restore layout for page not found when navigating from other page * Update component-renderer.js
Given when user landed on page not found and then navigated to other page, this seems fine. However, when user press the back button in the browser, the layout went missing. This fix is to restore the layout which previously exist (if it does), that went missing when going back to the page not found again.