Skip to content

Commit 7fd67da

Browse files
committed
Another fix for logout page redirect after re-login radiantearth#570
1 parent 14a3e3b commit 7fd67da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/auth/oidc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import BrowserStorage from "../browser-store";
22
import Auth from "./index";
3+
import Utils from "../utils";
34

45
import { UserManager } from 'oidc-client-ts';
56

@@ -30,8 +31,8 @@ export default class OIDC extends Auth {
3031

3132
restoreOriginalUri() {
3233
let originalUri = this.browserStorage.get('oidc-original-uri');
33-
if (this.router && originalUri) {
34-
if (originalUri == '/auth/logout') {
34+
if (this.router && Utils.hasText(originalUri)) {
35+
if (originalUri.startsWith('/auth/logout')) {
3536
originalUri = '/';
3637
}
3738
this.router.replace(originalUri);

0 commit comments

Comments
 (0)