Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Fix issue with unicode url causing 2 state entries pushed on navigation #80

Merged
merged 1 commit into from
Sep 2, 2015

Conversation

lingyan
Copy link
Contributor

@lingyan lingyan commented Sep 1, 2015

@mridgway @redonkulus cc:// @pumpikano

This issue was also described in #66.

It is because if you have unicode in the navigate url, History.getUrl() will return encoded string instead of the original url. Therefore failing this url check: https://github.com/yahoo/fluxible-router/blob/228b123bc4f0a22151333a4aab6a6a48e0865c2c/lib/handleHistory.js#L158

This fix will work for modern browsers that support history pushState. For older browsers, we'll leave it as a known issue.

@mridgway
Copy link
Collaborator

mridgway commented Sep 2, 2015

🚀

@yahoocla
Copy link

yahoocla commented Sep 2, 2015

CLA is valid!

lingyan added a commit that referenced this pull request Sep 2, 2015
Fix issue with unicode url causing 2 state entries pushed on navigation
@lingyan lingyan merged commit 2d7fcdd into master Sep 2, 2015
@lingyan lingyan removed the ready label Sep 2, 2015
@lingyan lingyan deleted the fixUnicodeUrls branch September 2, 2015 15:39
@lingyan lingyan mentioned this pull request Sep 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants