Skip to content

Commit f06f28e

Browse files
revert: refact(): no need to trim empty hash from $location.absUrl()
This reverts commit f3b088a. The commit didn't take into account that IE9 may actually return empty hash URLs for $location.absUrl().
1 parent f3b088a commit f06f28e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/ng/location.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ function $LocationProvider() {
917917
// update browser
918918
$rootScope.$watch(function $locationWatch() {
919919
var oldUrl = trimEmptyHash($browser.url());
920-
var newUrl = $location.absUrl();
920+
var newUrl = trimEmptyHash($location.absUrl());
921921
var oldState = $browser.state();
922922
var currentReplace = $location.$$replace;
923923
var urlOrStateChanged = oldUrl !== newUrl ||

0 commit comments

Comments
 (0)