gitea/modules
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
..
actions
activitypub
analyze
assetfs
auth
avatar
base
cache
charset
container
context Fix htmx rendering the login page in frame on session logout (#29405) 2024-02-26 20:40:41 +08:00
contexttest
csv
emoji
eventsource
generate
git
gitgraph
gitrepo
graceful Suggest to use Type=simple for systemd service (#28717) 2024-01-07 15:18:04 +00:00
hcaptcha
highlight
hostmatcher
html
httpcache
httplib
indexer
issue/template Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
json
label
lfs
log
markup
mcaptcha
metrics
migration
nosql
optional
options
packages
paginator
pprof
private
process
proxy
proxyprotocol
public
queue
recaptcha
references
regexplru
repository Ignore the linux anchor point to avoid linux migrate failure (#29295) 2024-02-22 17:40:53 +00:00
secret
session
setting
sitemap
ssh
storage Fix object storage path handling (#27024) 2023-09-13 01:18:52 +00:00
structs
svg
sync
system Replace more db.DefaultContext (#27628) 2023-10-15 17:46:06 +02:00
templates Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-25 14:02:20 +00:00
test
testlogger
timeutil
translation
turnstile
typesniffer
updatechecker
upload
uri
user
util Use crypto/sha256 (#29386) 2024-02-25 13:32:13 +00:00
validation
web
webhook