meta base not working on client side #10711
Unanswered
francescovenica
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm using express with nextjs, the express app has these routes:
/:lang/yyy
/:lang/xxx
/:lang/xxx/xxx
./:lang/xxx/xxx/xxx
.All my pages has the meta base with this url:
http://localhost:3000/${lang}/
while all the links in the pages are<Link href="my-page" />
.If I'm in this page:
http://localhost:3000/en/xxx
and I click a link like
<a href="yyy"></a>
I navigate to the right pagehttp://localhost:3000/en/yyy
, but if I'm in this page:http://localhost:3000/en/xxx/xxx
and I click a link like
<a href="yyy"></a>
instead of navigate to the right pagehttp://localhost:3000/en/yyy
I'll land in this pagehttp://localhost:3000/en/xxx/yyy
When I hover the link I can see the right url, indeed if I open the link in a new page is working fine.
I'm doing something wrong?
many thanks
Beta Was this translation helpful? Give feedback.
All reactions