-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue: wrong pathname encoding (#390)
* Issue: wrong pathname encoding The encoding on pathname fails when the URL contains `%2F`, and returns the pathname with `%252F` instead. this is because `encodeURI(decodeURI('%2F')) === "%252F"` Also see: https://codesandbox.io/s/reach-router-encoding-issue-pofyo * fix: Encoded pathname Encoding can now handle side cases where URLs include both encoded and decoded parts that `encode/decodeURI` can't handle, such as `/folder/a%2Fb`
- Loading branch information
1 parent
0469494
commit e203fe6
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters