Skip to content

Conversation

jacobrobertsbaca
Copy link

This PR fixes the basePath handling mentioned in #41 where the App router link interceptor adds the basePath twice.

Unfortunately, the NextJS app router no longer makes basePath accessible (see this page) so removing the extra path segments is not as simple as using router.basePath. Instead, we need to render a node and see what the resulting <a /> tag's href attribute looks like.

I have tested this on my own local site with 1) no base path set and 2) a base path set. Both methods are working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants