]> source.dussan.org Git - gitea.git/commitdiff
Add SubURL to redirect path (#8632)
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>
Tue, 22 Oct 2019 18:50:24 +0000 (13:50 -0500)
committerLauris BH <lauris@nix.lv>
Tue, 22 Oct 2019 18:50:24 +0000 (21:50 +0300)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
modules/context/repo.go

index e2aebc019cddfa87e9e22c593015ee1dd7ccd5ee..8a9c9e4b8cf70370fd62317fffb6979bc1acac27 100644 (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) {