What version of React Router are you using?
6.4.1
Steps to Reproduce
- 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');
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.