diff options
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 |