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
Navigate to /basename/some-path in the sandbox browser window and click the submit button. This will trigger a navigation.
Expected Behavior
I would have expected the basename part of the URL to be preserved, and to stay at /basename/some-path
Actual Behavior
/basename is not preserved, app navigates to /some-path instead. To get the desired behavior, I must use the full URL to stay at the current route: <Form action="/basepath/some-path>
The text was updated successfully, but these errors were encountered:
What version of React Router are you using?
6.4
Steps to Reproduce
CodeSandbox
Navigate to
/basename/some-path
in the sandbox browser window and click the submit button. This will trigger a navigation.Expected Behavior
I would have expected the basename part of the URL to be preserved, and to stay at
/basename/some-path
Actual Behavior
/basename
is not preserved, app navigates to/some-path
instead. To get the desired behavior, I must use the full URL to stay at the current route:<Form action="/basepath/some-path
>The text was updated successfully, but these errors were encountered: