Dynamic Routing: Link component doesn't request the correct js file... #13590
Replies: 2 comments 2 replies
-
You have no page named You should just use a normal If you want |
Beta Was this translation helpful? Give feedback.
-
That link I posted was an example of what I generate dynamically. My routes look like this:
Dynamic routing itself works, but it is not using the feature of Link. It is just loading the page with a new pageload edit:
Shouldn't it look for a show.js? Or is it looking for the correct file but the dummy-entry-1.js is really missing? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm on
"next": "9.1.5",
and this is my file structure for pages:I have this dummy Navigation:
When navigating from anywhere to a blog page, the following happens. The page is loaded and displayed correctly, but not via javascript. It does a full page load. I observed the following:
When going to /home, it works fine:
The thing that's causing the problem is that the js file is called
_next/static/development/pages/blog/show.js
and notdummy-entry-1.js
.What am I missing? Why is this happening? Whats causing this?
Beta Was this translation helpful? Give feedback.
All reactions