Feature: Browser-Besucher ohne Login → /info Redirect, PWA-Nutzer bleiben in App (SW by-v731)

This commit is contained in:
rene 2026-05-06 17:49:52 +02:00
parent 7441d4627e
commit 6426d9c577
6 changed files with 21 additions and 4 deletions

View file

@ -1004,5 +1004,14 @@
</div>
</footer>
<script>
// Alle Links die zur App führen (/) setzen das Flag damit kein Redirect-Loop entsteht
document.querySelectorAll('a[href="/"], a[href^="/#"]').forEach(function(a) {
a.addEventListener('click', function() {
sessionStorage.setItem('by_stay_in_app', '1');
});
});
</script>
</body>
</html>