diff --git a/packages/ts/frontend/src/Authentication.ts b/packages/ts/frontend/src/Authentication.ts index c08ca50587..e8aa754275 100644 --- a/packages/ts/frontend/src/Authentication.ts +++ b/packages/ts/frontend/src/Authentication.ts @@ -126,7 +126,7 @@ function normalizePath(url: string): string { */ function navigateWithPageReload(to: string) { // Consider absolute path to be within application context - const url = to.startsWith('/') ? new URL(`.${to}`, document.baseURI).toString() : to; + const url = to.startsWith('/') ? new URL(`.${to}`, document.baseURI) : to; window.location.replace(url); }