Access terms without redirect
This commit is contained in:
parent
45b7285d1c
commit
6e7d52f827
1 changed files with 5 additions and 1 deletions
|
|
@ -323,7 +323,11 @@ const FitPubAuth = {
|
|||
return;
|
||||
}
|
||||
|
||||
// Check if authenticated
|
||||
if (currentPath.startsWith('/terms')) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if authenticated
|
||||
if (!this.isAuthenticated()) {
|
||||
// Redirect to login for protected pages
|
||||
window.location.href = '/login?redirect=' + encodeURIComponent(currentPath);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue