fix(js): Fix url redirection to null when disconnected. Closes #5844.

This commit is contained in:
smizrahi
2023-09-11 14:55:44 +02:00
parent 4abf12b4bb
commit dc23721b75
@@ -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();
}
}