Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 50ed277

Browse files
committed
fixup! fix($location): fix infinite recursion/digest on URLs with special characters
1 parent 0791d90 commit 50ed277

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/location.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ function $LocationProvider() {
943943
// getting double entries in the location history.
944944
event.preventDefault();
945945
// update location manually
946-
if (!urlsEqual($location.absUrl(), $browser.url())) {
946+
if ($location.absUrl() !== $browser.url()) {
947947
$rootScope.$apply();
948948
}
949949
}
@@ -952,7 +952,7 @@ function $LocationProvider() {
952952

953953

954954
// rewrite hashbang url <> html5 url
955-
if (!urlsEqual(trimEmptyHash($location.absUrl()), trimEmptyHash(initialUrl))) {
955+
if (trimEmptyHash($location.absUrl()) !== trimEmptyHash(initialUrl)) {
956956
$browser.url($location.absUrl(), true);
957957
}
958958

0 commit comments

Comments
 (0)