forgejo/routers
cassiozareck 73fb1ecdcf
Fixing redirection issue for logged-in users ()
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: 

---------

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 () 2023-07-26 19:43:21 +00:00
common Less naked returns () 2023-07-07 05:31:56 +00:00
install Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" () 2023-07-21 12:14:20 +00:00
private Add context parameter to some database functions () 2023-07-22 22:14:27 +08:00
utils Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
web Fixing redirection issue for logged-in users () 2023-07-27 13:08:51 +08:00
init.go Refactor path & config system () 2023-06-21 13:50:26 +08:00