Skip to content

Commit

Permalink
chore(frontend): remove unnecessary .toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
platosha committed May 27, 2024
1 parent 8be95eb commit 1dec469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ts/frontend/src/Authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 1dec469

Please sign in to comment.