You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a basename is added to React Router,the href in the left-side navigation does not include the basename.
While everything works fine during regular navigation, the path is incorrect when opening links in a new window or tab.
e.g., right-click -> Open link in new tab
Hi, could you please share a reproduction / CodeSandbox or the specific configuration you're using for React Router and the navigation passed to AppProvider?
I wonder if just including the basename in the segments for navigation items would be enough, but if that solution isn't elegant enough we can try to come up with something better.
I wonder if just including the basename in the segments for navigation items would be enough, but if that solution isn't elegant enough we can try to come up with something better.
I believe this will need to be part of the router adapter. the DashboardLayout should not need to know about the basepath.
Steps to reproduce
When a
basename
is added to React Router,thehref
in the left-side navigation does not include thebasename
.While everything works fine during regular navigation, the path is incorrect when opening links in a new window or tab.
e.g., right-click -> Open link in new tab
@toolpad/[email protected]
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
No response
Search keywords: navigation, routing, link, basename
The text was updated successfully, but these errors were encountered: