aboutsummaryrefslogtreecommitdiffstats
path: root/modules/context
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-10-22 13:50:24 -0500
committerLauris BH <lauris@nix.lv>2019-10-22 21:50:24 +0300
commitfe41f71ba15437fad7c7e56a48678c57a995f1fa (patch)
tree47c51fb26560fbed0c1d5b5a6c4a0f9efabb4a05 /modules/context
parenta41a965db2526ef6d565ef561d523f5385a5a43a (diff)
downloadgitea-fe41f71ba15437fad7c7e56a48678c57a995f1fa.tar.gz
gitea-fe41f71ba15437fad7c7e56a48678c57a995f1fa.zip
Add SubURL to redirect path (#8632)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'modules/context')
-rw-r--r--modules/context/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go
index e2aebc019c..8a9c9e4b8c 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -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) {