diff options
author | Lauris BH <lauris@nix.lv> | 2017-11-27 02:58:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-27 02:58:54 +0200 |
commit | 0d4c63fd70d0b255a9a17352cc47ec2b6ca13440 (patch) | |
tree | 1128c5e474474bf7b2967dee8b9528dc207c6aa7 /routers/repo/search.go | |
parent | fb5c6b644460f94acb8976ad35165230b9d47fb2 (diff) | |
download | gitea-0d4c63fd70d0b255a9a17352cc47ec2b6ca13440.tar.gz gitea-0d4c63fd70d0b255a9a17352cc47ec2b6ca13440.zip |
Fix go-get, src and raw urls to new scheme (#2978)
Diffstat (limited to 'routers/repo/search.go')
-rw-r--r-- | routers/repo/search.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/search.go b/routers/repo/search.go index d755080adb..bf260ac8e4 100644 --- a/routers/repo/search.go +++ b/routers/repo/search.go @@ -38,7 +38,7 @@ func Search(ctx *context.Context) { pager := paginater.New(total, setting.UI.RepoSearchPagingNum, page, 5) ctx.Data["Page"] = pager ctx.Data["SourcePath"] = setting.AppSubURL + "/" + - path.Join(ctx.Repo.Repository.Owner.Name, ctx.Repo.Repository.Name, "src", ctx.Repo.Repository.DefaultBranch) + path.Join(ctx.Repo.Repository.Owner.Name, ctx.Repo.Repository.Name, "src", "branch", ctx.Repo.Repository.DefaultBranch) ctx.Data["SearchResults"] = searchResults ctx.Data["RequireHighlightJS"] = true ctx.Data["PageIsViewCode"] = true |