Closed
Description
Description
When Gitea is hosted with a subUrl (e.g. on studio.localhost/repos), there seems to be a problem with redirection.
If you provide the redirect parameter as “/”, Gitea should redirect to the root (“/”). However, it currently redirects to gitea home page. Similarly, if you pass any other parameter (e.g., “/redirected”) as the redirect_to parameter, Gitea redirects to the Gitea home page rather than the specified page.
The same issue exists with the OIDC flow.
Steps to reproduce.
Detailed instructions for reproducing the bug are described in demo repo
Gitea Version
1.21.11-rootless
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
We're using self-hosted Gitea in AKS.
Database
PostgreSQL