Fix: Ausweis-Seite window.close() → location.href='/' in PWA (SW by-v872)

This commit is contained in:
rene 2026-05-11 21:26:03 +02:00
parent bda61a0e40
commit b12467286c

View file

@ -1414,7 +1414,7 @@ async def ausweis_page(dog_id: int, request: Request):
<div class="body">
<div class="no-print" style="display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px">
<button onclick="window.history.length>1?window.history.back():window.close()"
<button onclick="window.history.length>1?window.history.back():(window.location.href='/')"
style="background:#f0e6d3;color:#7a4a1e;border:none;border-radius:100px;
padding:10px 20px;font-size:0.9rem;cursor:pointer;font-weight:600">
Zurück zur App