gitea/modules/context
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
..
access_log.go
api_org.go
api_test.go
api.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
base.go Fix htmx rendering the login page in frame on session logout (#29405) 2024-02-26 20:40:41 +08:00
captcha.go
context_cookie.go
context_model.go
context_request.go
context_response.go Refactor more code in templates (#29236) 2024-02-18 10:52:02 +01:00
context_template.go Remove DataRaceCheck (#29258) 2024-02-19 11:25:58 +00:00
context_test.go
context.go Customizable "Open with" applications for repository clone (#29320) 2024-02-24 13:12:17 +00:00
csrf.go
org.go Unify organizations header (#29248) 2024-02-23 01:24:57 +01:00
package.go
pagination.go
permission.go
private.go
repo.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
response.go
utils.go
xsrf_test.go
xsrf.go