0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-14 18:23:58 +01:00
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 Improve the issue_comment workflow trigger event (#29277) 2024-02-22 22:47:35 +08:00
activitypub
analyze
assetfs
auth Use crypto/sha256 (#29386) 2024-02-25 13:32:13 +00:00
avatar Use crypto/sha256 (#29386) 2024-02-25 13:32:13 +00:00
base Use crypto/sha256 (#29386) 2024-02-25 13:32:13 +00:00
cache Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
charset Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
container
context Fix htmx rendering the login page in frame on session logout (#29405) 2024-02-26 20:40:41 +08:00
contexttest Improve user experience for outdated comments (#29050) 2024-02-08 01:50:48 +00:00
csv Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
emoji
eventsource
generate Refactor JWT secret generating & decoding code (#29172) 2024-02-16 15:18:30 +00:00
git Use crypto/sha256 (#29386) 2024-02-25 13:32:13 +00:00
gitgraph
gitrepo Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
graceful Suggest to use Type=simple for systemd service (#28717) 2024-01-07 15:18:04 +00:00
hcaptcha
highlight Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
hostmatcher
html
httpcache Also match weakly validated ETags (#28957) 2024-01-29 16:18:40 +00:00
httplib
indexer Add io.Closer guidelines (#29387) 2024-02-25 13:05:23 +00:00
issue/template
json
label
lfs Use crypto/sha256 (#29386) 2024-02-25 13:32:13 +00:00
log
markup Refactor markup rendering to accept general "protocol:" prefix (#29276) 2024-02-21 10:08:08 +00:00
mcaptcha
metrics
migration Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
nosql
optional Make optional.Option[T] type serializable (#29282) 2024-02-23 21:51:46 +00:00
options
packages Integrate alpine noarch packages into other architectures index (#29137) 2024-02-25 15:10:55 +00:00
paginator
pprof
private Return responseText instead of string in some functions (#28836) 2024-01-19 10:45:23 +08:00
process
proxy
proxyprotocol
public Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
queue
recaptcha
references Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
regexplru
repository Ignore the linux anchor point to avoid linux migrate failure (#29295) 2024-02-22 17:40:53 +00:00
secret Use crypto/sha256 (#29386) 2024-02-25 13:32:13 +00:00
session
setting Customizable "Open with" applications for repository clone (#29320) 2024-02-24 13:12:17 +00:00
sitemap
ssh
storage
structs Add merge style fast-forward-only (#28954) 2024-02-12 23:37:23 +01:00
svg
sync
system
templates Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-25 14:02:20 +00:00
test
testlogger
timeutil Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
translation Improve TrHTML and add more tests (#29228) 2024-02-18 12:15:24 +00:00
turnstile
typesniffer
updatechecker
upload
uri
user
util Use crypto/sha256 (#29386) 2024-02-25 13:32:13 +00:00
validation
web Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
webhook Fix schedule tasks bugs (#28691) 2024-01-12 21:50:38 +00:00