Skip to content
This repository was archived by the owner on Jan 22, 2019. It is now read-only.

Commit 0224889

Browse files
author
AndrewH
committed
Checks the oauthRedirectRoute is not string 'null' before attempting redirect
1 parent 67f986b commit 0224889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/angularJsOAuth2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
if (!parsedFromHash || previousState == service.token.state) {
110110
$rootScope.$broadcast('oauth2:authSuccess');
111111
var oauthRedirectRoute = $window.sessionStorage.getItem('oauthRedirectRoute');
112-
if (oauthRedirectRoute) {
112+
if (oauthRedirectRoute && oauthRedirectRoute != "null") {
113113
$window.sessionStorage.setItem('oauthRedirectRoute', null);
114114
$location.path(oauthRedirectRoute);
115115
}

0 commit comments

Comments
 (0)