Next.js Discord

Discord Forum

Page route URL collision

Unanswered
English Angora posted this in #help-forum
Open in Discord
English AngoraOP
i have 2 pages

pages/user/[pay_Id]/success.js

pages/user/[url_Value]/[new_Id].js

I can't access the success page (localhost:3000/user/46fs4df46sf/success), instead the other page is loading.

1 Reply

I dont know if there are other better ways but

1) You can turn one of them into a parameter like : pages/user/success?pay_id=shdhdh, or just use parameters in general

2) you can try different combinations with catchalls and doing the processing yourself