Skip to content

Commit e77167c

Browse files
committed
fix($browser): prevent infinite $digest from no trailing slash in IE9
fix($browser): prevent infinite $digest from no trailing slash in IE9 This fix prevents IE9 from throwing an infinite $digest error when the user accesses the base URL of the site without a trailing slash. Suppose you owned http://www.mysite.com/app and had an Angular app hosted in a subdirectory "app". If an IE9 user accessed http://www.mysite.com/app infinite $digest errors would be thrown on the console, but the app itself would eventually resolve properly and work fine. Now the infinite $digest errors will not be thrown. Closes angular#11439
1 parent e4bace0 commit e77167c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ng/location.js

-3
Original file line numberDiff line numberDiff line change
@@ -952,9 +952,6 @@ function $LocationProvider() {
952952
oldState === $location.$$state ? null : $location.$$state);
953953
}
954954
afterLocationChange(oldUrl, oldState);
955-
//if ($location.$$html5 && $location.absUrl().indexOf("#") > -1 && $location.absUrl() !== $browser.url()) {
956-
// $browser.forceReloadLocationUpdate($location.absUrl());
957-
//}
958955
}
959956
});
960957
}

0 commit comments

Comments
 (0)