mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-12 08:58:00 +00:00
fix(js): Fix url redirection to null when disconnected. Closes #5844.
This commit is contained in:
@@ -343,7 +343,11 @@
|
||||
else {
|
||||
$state = $injector.get('$state');
|
||||
angular.element($window).off('beforeunload');
|
||||
$window.location.href = $window.ApplicationBaseURL + $state.href($state.current);
|
||||
if ($state.href($state.current)) {
|
||||
$window.location.href = $window.ApplicationBaseURL + $state.href($state.current);
|
||||
} else {
|
||||
$window.location.href = $window.ApplicationBaseURL;
|
||||
}
|
||||
return $q.reject();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user