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
Create a data browser router with some routes and a basename: createBrowserRouter(routes, { basename: '/m' });
In any route, attach a loader or an action (both are impacted) which returns or throws (both are impacted) a redirect to another route represented by an absolute path: throw redirect('/some-route');
What version of React Router are you using?
6.4.1
Steps to Reproduce
createBrowserRouter(routes, { basename: '/m' });
throw redirect('/some-route');
Expected Behavior
The new browser URL should be https://example.com/m/some-route
Actual Behavior
The new browser URL is https://example.com/some-route. The basename (/m) is missing, so we don't see the expected page as it couldn't match.
The text was updated successfully, but these errors were encountered: