Browse Source

Add SubURL to redirect path (#8632)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
tags/v1.21.12.1
John Olheiser Lauris BH 6 years ago
parent
commit
fe41f71ba1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/context/repo.go

+ 1
- 1
modules/context/repo.go View File

@@ -236,7 +236,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) {


Loading…
Cancel
Save