Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/src/lib/hooks/api/appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
response = {};
}

let url = new URL(data.raw.url);

Check failure on line 41 in frontend/src/lib/hooks/api/appConfig.ts

View workflow job for this annotation

GitHub Actions / build-and-test / tests

'url' is never reassigned. Use 'const' instead
return {
redirect: data.raw.url.includes('auth'),
redirect: url.pathname.includes('auth'),
response,
};
});
Expand Down
Loading