forgejo/routers/web
cassiozareck 73fb1ecdcf
Fixing redirection issue for logged-in users (#26105)
This PR addresses an issue where logged-in users get redirected to the
homepage when trying to access a URL with the redirect_to parameter. The
issue was traced back to a middleware function in
services/auth/middleware.go that redirects logged-in users to the
homepage. This function didn't account the redirect_to parameter.

The fix modifies the middleware function to check for this case and
redirect the user to the specified URL instead of the homepage.

Closes: #26005

---------

Signed-off-by: cassiozareck <cassiomilczareck@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-07-27 13:08:51 +08:00
..
admin Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
auth Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
devtest
events
explore
feed Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
healthcheck Remove db.DefaultContext in routers/ and cmd/ (#26076) 2023-07-23 23:47:27 -04:00
misc Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" (#25974) 2023-07-21 12:14:20 +00:00
org Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
repo Improve display of Labels/Projects/Assignees sort options (#25886) 2023-07-26 13:00:50 +00:00
shared Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
user Move web JSON functions to web context and simplify code (#26132) 2023-07-26 06:04:01 +00:00
auth.go
auth_windows.go
base.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Fixing redirection issue for logged-in users (#26105) 2023-07-27 13:08:51 +08:00
webfinger.go Add a link to OpenID Issuer URL in WebFinger response (#26000) 2023-07-20 16:02:45 +08:00