Skip to content

Commit

Permalink
Merge pull request #1812 from jerousseau/patch-1
Browse files Browse the repository at this point in the history
Check if savedRouteForRedirect is null
  • Loading branch information
FabianGosebrink authored Jul 27, 2023
2 parents 015bdac + a6a5b32 commit 22f5de6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class AutoLoginService {
checkSavedRedirectRouteAndNavigate(config: OpenIdConfiguration): void {
const savedRouteForRedirect = this.getStoredRedirectRoute(config);

if (savedRouteForRedirect) {
if (savedRouteForRedirect != null) {
this.deleteStoredRedirectRoute(config);
this.router.navigateByUrl(savedRouteForRedirect);
}
Expand Down

0 comments on commit 22f5de6

Please sign in to comment.