So here is the thing, I have a nextjs app and everything works fine on displaying 404 page in my localhost and navigating back to homepage (or other pages) but in vercel hosted app this is what's happening:
- I go to some /gibberish route
- my custom 404 page is shown
- I try to go to the homepage via "Link href='/'"
- The route changes back from '/gibberish' to '/' which is my homepage,
- The 404 component view keeps being rendered in the homepage and doesn't change.
- Clicking the back to homepage button does nothing, and if I navigate through the app and go back to homepage the 404 component is still showing instead of my homepage. I have a layout wrapping the content and also the page and the not-found component as suggested by next
Top comments (0)