]> source.dussan.org Git - gitea.git/commitdiff
Add SubURL to redirect path (#8632) (#8634) (#8640)
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>
Wed, 23 Oct 2019 06:11:29 +0000 (01:11 -0500)
committerzeripath <art27@cantab.net>
Wed, 23 Oct 2019 06:11:29 +0000 (07:11 +0100)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
modules/context/repo.go

index 8a056427e0e435a02af4d4827f0d66ffe5eafc6e..1131cf4f47310927ad574d4f3bba8e941a4034cd 100644 (file)
@@ -233,7 +233,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) {