From 1e1211c19483611051080dd5cd127d2aa3a860fa Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Wed, 23 Oct 2019 01:11:29 -0500 Subject: [PATCH] Add SubURL to redirect path (#8632) (#8634) (#8640) Signed-off-by: jolheiser --- modules/context/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/context/repo.go b/modules/context/repo.go index 8a056427e0e..1131cf4f473 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -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) {