Rechtsseiten-Hash-Links bleiben in der SPA statt /info-Redirect fuer anonyme Besucher
#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).
This commit is contained in:
parent
70a1f5856a
commit
de25901fa2
1 changed files with 6 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue