Replies: 2 comments
-
What should happen if you also have a page |
Beta Was this translation helpful? Give feedback.
-
@Janpot fair point. Maybe I’m asking the Link component to be smarter than it needs to be. My urls come from a CMS and are a data source for three micro front end apps. The Changing the URL so that it links to one place in order to reach another feels like a hack and it seems like there should be a mechanism to support this scenario. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
Describe the bug
Using a basePath configuration and navigating client-side using the Link component, a url that matches the basePath is not recognised as the site root and the basePath is added to the url.
This results in an incorrect url.
To Reproduce
Next Config:
pages/test.js:
Clicking the above link takes you to
/docs/docs
Expected behavior
The Link component should recognise the href as being the basePath and therefore the site root and not add the basePath to the href.
System information
Beta Was this translation helpful? Give feedback.
All reactions