From 87aeed8de83fe30c2cd50c7273600029b55341f4 Mon Sep 17 00:00:00 2001 From: rene Date: Thu, 30 Apr 2026 19:27:48 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Nicht=20eingeloggte=20User=20landen=20im?= =?UTF-8?q?mer=20auf=20Welcome=20=E2=80=94=20auch=20bei=20direktem=20Hash-?= =?UTF-8?q?Link?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit navigate() beim Start prüft jetzt state.user; #forum, #wiki etc. werden für Nicht-Eingeloggte auf welcome umgeleitet. SW by-v571, APP_VER 548 --- backend/static/js/app.js | 5 +++-- backend/static/sw.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 29fa667..bc671d7 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '547'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '548'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.1.4'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; @@ -802,7 +802,8 @@ const App = (() => { }); } const startPage = (hashPage && pages[hashPage]) ? hashPage : 'welcome'; - navigate(startPage, false, hashParams); + // Nicht eingeloggte User immer zur Welcome-Seite — auch bei direktem Link auf Forum, Map etc. + navigate(state.user ? startPage : 'welcome', false, hashParams); } async function _handleInvite(token) { diff --git a/backend/static/sw.js b/backend/static/sw.js index c79c789..2b792d5 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v570'; +const CACHE_VERSION = 'by-v571'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache