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>
2023-07-27 13:08:51 +08:00
..
api Fix handling of plenty Nuget package versions (#26075) 2023-07-26 19:43:21 +00:00
common
install
private Add context parameter to some database functions (#26055) 2023-07-22 22:14:27 +08:00
utils
web Fixing redirection issue for logged-in users (#26105) 2023-07-27 13:08:51 +08:00
init.go