From 6e7d52f8274e2503ddfb6560bfdbb35c3a2043c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Z=C3=B6ller?= Date: Tue, 13 Jan 2026 13:22:20 +0100 Subject: [PATCH] Access terms without redirect --- src/main/resources/static/js/auth.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/js/auth.js b/src/main/resources/static/js/auth.js index 0a94a0a..78755a0 100644 --- a/src/main/resources/static/js/auth.js +++ b/src/main/resources/static/js/auth.js @@ -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);