Yarden Shoham 324626a11c
Fix htmx rendering the login page in frame on session logout (#29405)
- Fix #29391

With this change, htmx will not follow the redirect in the AJAX request
but instead redirect the whole browser.

To reproduce the bug fixed by this change without waiting a long time
for the token to expire, you can logout in another tab then look in the
original tab. Just make sure to comment out both instances of
`window.location.href = appSubUrl` in the codebase so you won't be
redirected immediately on logout. This is what I did in the following
gifs.

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Giteabot <teabot@gitea.io>
2024-02-26 20:40:41 +08:00
..
2024-02-25 13:32:13 +00:00
2024-02-25 13:32:13 +00:00
2024-02-25 13:32:13 +00:00
2023-12-19 09:29:05 +00:00
2024-02-25 13:32:13 +00:00
2023-07-07 05:31:56 +00:00
2024-02-25 13:05:23 +00:00
2024-02-25 13:32:13 +00:00
2023-02-11 08:39:50 +08:00
2023-12-25 20:13:18 +08:00
2023-10-10 18:47:49 +08:00
2024-02-25 13:32:13 +00:00
2022-12-30 23:31:00 +08:00
2023-11-03 15:21:05 +00:00
2024-02-25 13:32:13 +00:00
2024-01-12 21:50:38 +00:00