Let's say I have 2 routes: /video
and /products/[id]
, so my pages
folder contains video.js
and products/[id].js
. When I use router.push
or Link
to navigate to /video
from /products/[id]
, the URL gets updated to /products/video
. Obviously this is not the correct behavior.
What am I missing?