dynamic route with static route
Unanswered
English Spot posted this in #help-forum
English SpotOP
I have 2 routes with in a same folder
/[username] and /rent
I want the /rent to render first instead of /[username] based on the console, is there a way to do it
/[username] and /rent
I want the /rent to render first instead of /[username] based on the console, is there a way to do it
9 Replies
American Crow
Isn't that the default behaviour that the explicit
/rentpage is rendered over the dynamic segment when you hit /rent in the browser?. Any other route e.g. /abc should resolve to the [username] segmentEnglish SpotOP
No what i meant is it's the other way around for me
As you can see from the console it shows to render /[username] page first instead of /rent
This is an issue for me bcos it is gonna trigger error as i have blocked the pages name as username :/
This is an issue for me bcos it is gonna trigger error as i have blocked the pages name as username :/
Siberian
I don't think compiling pages in dev mode directly correlates with it getting rendered.
do you actually get that error? If you put a console.log in the [username] page, do you see it when going to rent?
English SpotOP
yeah, i did get the error
Currently using "next": "13.4.7",
So this error is supposed to only trigger when i try to get /[username] data
But it also trigger when i try to connect to other pages, for example this is when i try to go to /wallet page
But it also trigger when i try to connect to other pages, for example this is when i try to go to /wallet page