Skip to content

Commit 77f352e

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 b64519f commit 77f352e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ng/browser.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,7 @@ function Browser(window, document, $log, $sniffer) {
190190
// Do the assignment again so that those two variables are referentially identical.
191191
lastHistoryState = cachedState;
192192
} else {
193-
if (!sameBase) {
194-
reloadLocation = url;
195-
}
193+
reloadLocation = url;
196194
if (replace) {
197195
location.replace(url);
198196
} else if (!sameBase) {

0 commit comments

Comments
 (0)