-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Unexpected page router navigate in Mozilla #4132
Labels
Comments
See previous tickets: I believe there was a bug in certain versions of Firefox that made this impossible to work around in Backbone itself. Do you have a specific change you'd like to propose here? |
@Daniel-Alonso-Exabeam I realize this reply is rather late, but you are welcome to submit a PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If there any German, Japanese etc. and any symbols like these in the url, getHash method returns incorrect result because of wrong encoding of this symbols in the Firefox browser, see window.location.href. And because of this
navigate
method is triggered.Navigate method is triggered because we have different urls in
checkUrl
function in thevar current = this.getFragment();
andin this.fragment
values.Example in Mozilla:
Result wich is returned by
getFragment
function:https://example.com/example?filterBy_city=%E5%A4%A7%E9%98%AA%2C%E5%AF%8C%E5%B1%B1%2C%E5%B2%A1%E5%B1%B1
this.fragment
value:https://example.com/example?filterBy_city=大阪%2C富山%2C岡山
Example in Chrome
Result wich is returned by
getFragment
function:https://example.com/example?filterBy_city=大阪%2C富山%2C岡山
this.fragment
value:https://example.com/example?filterBy_city=大阪%2C富山%2C岡山
I find the solution for it using
decodeFragment
in the getHash method:Would it be safely to do it this way?
The text was updated successfully, but these errors were encountered: