Fix session-expiry redirect breaking standalone PWA out of its shell
Same fix as maintenance/reports: manifest scope was the app's own base path instead of "/", and AuthGate unconditionally hard-navigated window.top to the central /login on session expiry even when not embedded in the portal iframe — together these dropped an installed/ standalone room-planner PWA into the portal's framed browser view instead of staying in its own window. AuthGate now only bounces to central login when actually embedded (passing ?from= so it returns here afterwards); standalone or directly-opened tabs get an in-app login form and never navigate away. Also wired up the previously-dead inactivity auto-logout timer. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
24c6fa1f7d
commit
2dbd490c1c
2 changed files with 119 additions and 11 deletions
|
|
@ -12,7 +12,7 @@ export default defineConfig({
|
|||
name: 'Room Planner',
|
||||
short_name: 'Rooms',
|
||||
start_url: '/room-planner/',
|
||||
scope: '/room-planner/',
|
||||
scope: '/',
|
||||
display: 'standalone',
|
||||
theme_color: '#1a5276',
|
||||
background_color: '#1a5276',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue