Skip to content

Commit 9a24c9a

Browse files
committed
construct the redirect uris probably
1 parent 2b259e9 commit 9a24c9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packages/core/auth/auth.context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ export class UmbAuthContext extends UmbContextBase<UmbAuthContext> {
258258
}
259259

260260
getRedirectUrl() {
261-
return `${window.location.origin}${this.#backofficePath}oauth_complete`;
261+
return `${window.location.origin}${this.#backofficePath}${this.#backofficePath.endsWith('/') ? '' : '/'}oauth_complete`;
262262
}
263263

264264
getPostLogoutRedirectUrl() {
265-
return `${window.location.origin}${this.#backofficePath.endsWith('/') ? this.#backofficePath : this.#backofficePath + '/'}logout`;
265+
return `${window.location.origin}${this.#backofficePath}${this.#backofficePath.endsWith('/') ? '' : '/'}logout`;
266266
}
267267
}

0 commit comments

Comments
 (0)