Access terms without redirect

This commit is contained in:
Tim Zöller 2026-01-13 13:22:20 +01:00
parent 45b7285d1c
commit 6e7d52f827

View file

@ -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);