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

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
John Olheiser 2019-10-23 01:11:29 -05:00 committed by zeripath
parent 10e549df7d
commit 1e1211c194
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ func RedirectToRepo(ctx *Context, redirectRepoID int64) {
if ctx.Req.URL.RawQuery != "" { if ctx.Req.URL.RawQuery != "" {
redirectPath += "?" + 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) { func repoAssignment(ctx *Context, repo *models.Repository) {