-
Notifications
You must be signed in to change notification settings - Fork 383
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
POST calls do not change URL #243
Comments
This strange behaviour only happens with verbs different to GET. I think that this behaviour is a feature for these reasons:
I want to explain this behaviour:
Long answer:
They are binding all submit events to an anonymous function. Observe that this anonymous function has a call to this other function:
This function is the responsible of this behaviour:
These are the important lines:
If verb is "get" then _checkFormSubmission() change the location:
If verb is not "get" ,the the location is not changed. (runRoute() doesn't change the location.) |
Given a series of pages in an SPA, if one of them tries to POST data to another page, the URL doesn't change. For example, if I am currently on /MyApp/#/Login and try to post the user data to /MyApp/#/OtherPage, the url will remain as /MyApp/#/Login. The page will correctly change, the route handlers are correctly called, and the login data is correctly passed, but the url remains the same.
Here's a jsfiddle that demonstrates the problem: http://jsfiddle.net/legacybass/25u8ye83/
The text was updated successfully, but these errors were encountered: