Skip to content

Commit 57d198f

Browse files
STATISTIK-1211 Fixat en oändlig loop som kunde uppstå i IE11 om man fortsatte att försöka öppna nya rapporter efter att användaren blivit utloggad. Lösning enligt diskussion här: angular/angular.js#1417
1 parent 4965e6a commit 57d198f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

statistik-web/src/main/webapp/js/app/services/factories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ angular.module('StatisticsApp').factory('statisticsData', ['$http', '$rootScope'
4848
}
4949
}).error(function (data, status, headers, config) {
5050
if (status === 403) {
51-
window.location.replace("#/login");
51+
$location.path("/login");
5252
}
5353
if (status === 503) {
54-
window.location.replace("#/serverbusy");
54+
$location.path("/serverbusy");
5555
}
5656
failureCallback();
5757
});

0 commit comments

Comments
 (0)