In my scenario, I have two routes: /video
and /products/[id]
. This setup results in the following files within my pages
folder: video.js
and products/[id].js
. However, I encountered an issue where using router.push
or Link
to navigate from /products/[id]
to /video
causes the URL to update to /products/video
, which is not the intended behavior.
I am puzzled by this behavior. What could be causing this unexpected redirection?