summaryrefslogtreecommitdiffstats
path: root/routers/repo/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/search.go')
-rw-r--r--routers/repo/search.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/repo/search.go b/routers/repo/search.go
index af4fe9ef12..d9604bade0 100644
--- a/routers/repo/search.go
+++ b/routers/repo/search.go
@@ -6,7 +6,6 @@ package repo
import (
"net/http"
- "path"
"strings"
"code.gitea.io/gitea/modules/base"
@@ -41,7 +40,7 @@ func Search(ctx *context.Context) {
ctx.Data["Keyword"] = keyword
ctx.Data["Language"] = language
ctx.Data["queryType"] = queryType
- ctx.Data["SourcePath"] = path.Join(setting.AppSubURL, ctx.Repo.Repository.Owner.Name, ctx.Repo.Repository.Name)
+ ctx.Data["SourcePath"] = ctx.Repo.Repository.HTMLURL()
ctx.Data["SearchResults"] = searchResults
ctx.Data["SearchResultLanguages"] = searchResultLanguages
ctx.Data["RequireHighlightJS"] = true