Skip to content

Commit

Permalink
Fix logout page redirect after re-login #570
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Feb 25, 2025
1 parent d5ecb8e commit 67de7a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/auth/oidc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ export default class OIDC extends Auth {
}

restoreOriginalUri() {
const originalUri = this.browserStorage.get('oidc-original-uri');
let originalUri = this.browserStorage.get('oidc-original-uri');
if (this.router && originalUri) {
if (originalUri == '/auth/logout') {
originalUri = '/';
}
this.router.replace(originalUri);
}
this.browserStorage.remove('oidc-original-uri');
Expand Down

0 comments on commit 67de7a4

Please sign in to comment.