This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix($location): do not decode forward slashes in the path in HTML5 mode
Closes #16312
- Loading branch information
1 parent
ddeb1df
commit e06ebfd
Showing
2 changed files
with
34 additions
and
7 deletions.
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
@petebacondarwin Is it possible that this change introduced a breaking change? It changes the behavior if there are some special characters
; , / ? : @ & = + $ - _ . ! ~ * ' ( ) #
. This list is from encodeURI MDN docs.Previously this
$location.url(/foo%3Abar)
changed the path in address bar to/foo:bar
, now it remains unchanged due to differences indecodeURI
anddecodeURIComponent
.