Commit 5ac25f2
committed
Fix login form rendering inside dashboard on session expiry
HTMX polls /api/devices/live every 3s; when the session expires, the
302 redirect to /login was followed by HTMX and the login page HTML was
injected into the live-devices div. Use HX-Redirect header instead so
HTMX performs a full-page navigation to the login page.1 parent e79eb33 commit 5ac25f2
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
0 commit comments