You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
11 months ago
..
actions Improve the `issue_comment` workflow trigger event (#29277) 11 months ago
activitypub Upgrade to golangci-lint@v1.55.0 (#27756) 1 year ago
analyze Rename code_langauge.go to code_language.go (#26377) 2 years ago
assetfs Use `Set[Type]` instead of `map[Type]bool/struct{}`. (#26804) 1 year ago
auth Use `crypto/sha256` (#29386) 11 months ago
avatar Use `crypto/sha256` (#29386) 11 months ago
base Use `crypto/sha256` (#29386) 11 months ago
cache Always enable caches (#28527) 1 year ago
charset Refactor locale&string&template related code (#29165) 12 months ago
container Implement FSFE REUSE for golang files (#21840) 2 years ago
context Fix htmx rendering the login page in frame on session logout (#29405) 11 months ago
contexttest Improve user experience for outdated comments (#29050) 12 months ago
csv Refactor locale&string&template related code (#29165) 12 months ago
emoji Update emoji set to Unicode 15 (#25595) 2 years ago
eventsource Final round of `db.DefaultContext` refactor (#27587) 1 year ago
generate Refactor JWT secret generating & decoding code (#29172) 12 months ago
git Use `crypto/sha256` (#29386) 11 months ago
gitgraph More `db.DefaultContext` refactor (#27265) 1 year ago
gitrepo Simplify how git repositories are opened (#28937) 1 year ago
graceful Suggest to use Type=simple for systemd service (#28717) 1 year ago
hcaptcha Consume hcaptcha and pwn deps (#22610) 2 years ago
highlight Add option to disable ambiguous unicode characters detection (#28454) 1 year ago
hostmatcher Support allowed hosts for webhook to work with proxy (#27655) 1 year ago
html Refactor backend SVG package and add tests (#26335) 2 years ago
httpcache Also match weakly validated ETags (#28957) 1 year ago
httplib Less naked returns (#25713) 2 years ago
indexer Add `io.Closer` guidelines (#29387) 11 months ago
issue/template Replace `interface{}` with `any` (#25686) 2 years ago
json Replace `interface{}` with `any` (#25686) 2 years ago
label Make label templates have consistent behavior and priority (#23749) 2 years ago
lfs Use `crypto/sha256` (#29386) 11 months ago
log Reduce some allocations in type conversion (#26772) 1 year ago
markup Refactor markup rendering to accept general "protocol:" prefix (#29276) 12 months ago
mcaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
metrics Reduce usage of `db.DefaultContext` (#27073) 1 year ago
migration Refactor locale&string&template related code (#29165) 12 months ago
nosql Update tool dependencies, lock govulncheck and actionlint (#25655) 2 years ago
optional Make optional.Option[T] type serializable (#29282) 11 months ago
options Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
packages Integrate alpine `noarch` packages into other architectures index (#29137) 11 months ago
paginator Use more specific test methods (#24265) 2 years ago
pprof Implement FSFE REUSE for golang files (#21840) 2 years ago
private Return `responseText` instead of string in some functions (#28836) 1 year ago
process Replace assert.Fail with assert.FailNow (#27578) 1 year ago
proxy Use proxy for pull mirror (#22771) 2 years ago
proxyprotocol Implement FSFE REUSE for golang files (#21840) 2 years ago
public Refactor CORS handler (#28587) 1 year ago
queue Increase queue length (#27555) 1 year ago
recaptcha Implement FSFE REUSE for golang files (#21840) 2 years ago
references Add support for sha256 repositories (#23894) 1 year ago
regexplru Upgrade go dependencies (#25819) 2 years ago
repository Ignore the linux anchor point to avoid linux migrate failure (#29295) 11 months ago
secret Use `crypto/sha256` (#29386) 11 months ago
session Next round of `db.DefaultContext` refactor (#27089) 1 year ago
setting Customizable "Open with" applications for repository clone (#29320) 11 months ago
sitemap Fix sitemap (#22272) 2 years ago
ssh Remove SSH workaround (#27893) 1 year ago
storage Fix object storage path handling (#27024) 1 year ago
structs Add merge style `fast-forward-only` (#28954) 12 months ago
svg Refactor backend SVG package and add tests (#26335) 2 years ago
sync Implement FSFE REUSE for golang files (#21840) 2 years ago
system Replace more db.DefaultContext (#27628) 1 year ago
templates Remove incorrect and unnecessary Escape from templates (#29394) 11 months ago
test Move web/api context related testing function into a separate package (#26859) 1 year ago
testlogger Replace `interface{}` with `any` (#25686) 2 years ago
timeutil Refactor locale&string&template related code (#29165) 12 months ago
translation Improve TrHTML and add more tests (#29228) 12 months ago
turnstile Add new captcha: cloudflare turnstile (#22369) 2 years ago
typesniffer Detect ogg mime-type as audio or video (#26494) 1 year ago
updatechecker Replace more db.DefaultContext (#27628) 1 year ago
upload Implement FSFE REUSE for golang files (#21840) 2 years ago
uri Implement FSFE REUSE for golang files (#21840) 2 years ago
user Implement FSFE REUSE for golang files (#21840) 2 years ago
util Use `crypto/sha256` (#29386) 11 months ago
validation Check blocklist for emails when adding them to account (#26812) 1 year ago
web Refactor locale&string&template related code (#29165) 12 months ago
webhook Fix schedule tasks bugs (#28691) 1 year ago