1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 01:24:26 +00:00

Add SubURL to redirect path (#8632) (#8634)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser 2019-10-22 16:16:20 -05:00 committed by zeripath
parent 2fbd5ae2e5
commit 83c90e9ba0

View File

@ -236,7 +236,7 @@ func RedirectToRepo(ctx *Context, redirectRepoID int64) {
if ctx.Req.URL.RawQuery != "" {
redirectPath += "?" + ctx.Req.URL.RawQuery
}
ctx.Redirect(redirectPath)
ctx.Redirect(path.Join(setting.AppSubURL, redirectPath))
}
func repoAssignment(ctx *Context, repo *models.Repository) {