-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repository redirect not use modified ROOT_URL
#8588
Comments
So redirects are managed by this code: Lines 219 to 240 in 1b72690
Which basically does a straight replacement of the path that it is given. Adding the setting.AppSubUrl to the path at Line 239 in 1b72690
should be enough to make this work but it could do with some checking |
@zeripath is there a PR you are working on right now? |
Nope I just read the comment and realised how to fix it before bed. I won't really get a chance to look at this until evening UK time today so if you or anyone else fancies it in the meantime - please do send the PR. |
[x]
):(provide example URL)ROOT_URL
value is different.)Description
I install Gitea under a sub-path
/git/
with Nginx as a reverse proxy.When I modified "repository name", the old repo link should be redirected to the new link. I am expected it redirect to
/git/<OwnerNAME>/<RepoName>/
, but it actually redirect to/<OwnerNAME>/<RepoName>/
.app.ini:
nginx.conf:
Screenshots
The text was updated successfully, but these errors were encountered: