Unexpected 404 when render page URL with / (slash) at the end #13860
-
Bug reportUnexpected 404 when rendering page URL with / (slash) at the end Describe the bugunexpected result when / added to end of page URL Expectedexample (http://localhost:3000/home) Resultexample (http://localhost:3000/home/) To Reproduce
Expected behaviorexpected to render "./pages/home.js" or "./pages/home/index.js" System information
I'm not sure whether this is the expected result or not it wasn't for me when I notice, perhaps this is the only way Nextjs can handle routing. I find this to be rather strange UX and I have never seen this kind of issue with any other site or web app. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is a PR open to fix this 😄 |
Beta Was this translation helpful? Give feedback.
There is a PR open to fix this 😄
#13333