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/routers
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>
2 years ago
..
api Fix handling of plenty Nuget package versions (#26075) 2 years ago
common Less naked returns (#25713) 2 years ago
install Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" (#25974) 2 years ago
private Add context parameter to some database functions (#26055) 2 years ago
utils Implement FSFE REUSE for golang files (#21840) 2 years ago
web Fixing redirection issue for logged-in users (#26105) 2 years ago
init.go Refactor path & config system (#25330) 2 years ago