From de25901fa242d79fbaf5c05500ed688af2da4092 Mon Sep 17 00:00:00 2001 From: rene Date: Sat, 6 Jun 2026 11:05:22 +0200 Subject: [PATCH] Rechtsseiten-Hash-Links bleiben in der SPA statt /info-Redirect fuer anonyme Besucher MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #impressum/#datenschutz/#agb setzen jetzt by_stay_in_app — vorher schlug _checkAuth anonym fehl und welcome.js leitete auf /info um (blitzte kurz auf). Betraf iOS-App-Links, App-Store-Metadaten und /impressum-Pfad-Redirects. Fix uebernommen aus banyaro-ios-Handoff (relevant fuer Build-6-Resubmit). --- backend/static/js/app.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 9462986..07a14ea 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -1123,7 +1123,12 @@ const App = (() => { const _rawHash = location.hash.replace('#', ''); const _hashQuery = _rawHash.split('?')[1] || ''; const _hashP = new URLSearchParams(_hashQuery); - if (_hashP.get('verified') || _hashP.get('token') || location.pathname.startsWith('/teilen/')) { + // Rechtsseiten direkt verlinkt (iOS-App, App-Store-Metadaten, E-Mails, + // /impressum-Redirects) → ebenfalls in App bleiben statt /info + const _hashPage = _rawHash.split('?')[0]; + const _legalPages = ['impressum', 'datenschutz', 'agb']; + if (_hashP.get('verified') || _hashP.get('token') || location.pathname.startsWith('/teilen/') + || _legalPages.includes(_hashPage)) { sessionStorage.setItem('by_stay_in_app', '1'); }