-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Form post to any url if on page url with fragment doesn't work #9943
Comments
Can confirm I am also seeing this issue. It previously worked such that submitting a |
This looks like a bug - we short circuit navigations on hash change only since they are just intended to scroll the client side pages, but that is incorrectly triggering even when there is a submission. |
This is a bug in the |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
What version of Remix are you using?
7.30.0
Steps to Reproduce
Be on a page with a fragment like
/my-page#content
Now add a form:
Now press the button. It will go to
/my-page
by removing the fragment, without posting the form.It doesn't matter if an explicit action is present:
Expected Behavior
It ignores fragments / anchors because they should be ignored when doing a form post.
Actual Behavior
With JavaScript: It scrolls the page to the top of the page without posting.
Without JavaScript: It works as expected.
The text was updated successfully, but these errors were encountered: