construct the redirect uris probably

This commit is contained in:
Jacob Overgaard
2024-05-02 12:46:05 +02:00
parent c70f248259
commit 7d7e2afc77

View File

@@ -258,10 +258,10 @@ export class UmbAuthContext extends UmbContextBase<UmbAuthContext> {
}
getRedirectUrl() {
return `${window.location.origin}${this.#backofficePath}oauth_complete`;
return `${window.location.origin}${this.#backofficePath}${this.#backofficePath.endsWith('/') ? '' : '/'}oauth_complete`;
}
getPostLogoutRedirectUrl() {
return `${window.location.origin}${this.#backofficePath.endsWith('/') ? this.#backofficePath : this.#backofficePath + '/'}logout`;
return `${window.location.origin}${this.#backofficePath}${this.#backofficePath.endsWith('/') ? '' : '/'}logout`;
}
}