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 Replace `interface{}` with `any` (#25686) 2023-07-04 18:36:08 +00:00
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
api_org.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
api_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +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 Replace `interface{}` with `any` (#25686) 2023-07-04 18:36:08 +00:00
context.go Customizable "Open with" applications for repository clone (#29320) 2024-02-24 13:12:17 +00:00
context_cookie.go Enhanced auth token / remember me (#27606) 2023-10-14 00:56:41 +00:00
context_model.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 2023-05-09 01:30:14 +02:00
context_request.go Decouple the different contexts from each other (#24786) 2023-05-21 09:50:53 +08:00
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 Use standard HTTP library to serve files (#24693) 2023-05-13 16:04:57 +02:00
csrf.go Refactor cookie (#24107) 2023-04-13 15:45:33 -04:00
org.go Unify organizations header (#29248) 2024-02-23 01:24:57 +01:00
package.go Prevent anonymous container access if `RequireSignInView` is enabled (#28877) 2024-01-21 16:31:29 +00:00
pagination.go Replace `interface{}` with `any` (#25686) 2023-07-04 18:36:08 +00:00
permission.go Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
private.go Replace `interface{}` with `any` (#25686) 2023-07-04 18:36:08 +00:00
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 Refactor web package and context package (#25298) 2023-06-18 09:59:09 +02:00
utils.go Avoid double-unescaping of form value (#26853) 2023-09-01 12:01:36 +00:00
xsrf.go Update gitea-vet to check FSFE REUSE (#22004) 2022-12-02 22:14:57 +08:00
xsrf_test.go Update gitea-vet to check FSFE REUSE (#22004) 2022-12-02 22:14:57 +08:00