summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-06-23 09:48:35 -0400
committerGitHub <noreply@github.com>2023-06-23 15:48:35 +0200
commitb0de3d08b8afe8ea16744d2504c54c52053141dc (patch)
treee1d8d45929989301b0999d8e3c6f85be0309a91f
parent2e64449de7e400e0dea257b4f2f1530b13f251fc (diff)
downloadgitea-b0de3d08b8afe8ea16744d2504c54c52053141dc.tar.gz
gitea-b0de3d08b8afe8ea16744d2504c54c52053141dc.zip
Fix repo search broken because of profile page added (#25455) (#25467)v1.20.0-rc1
Backport #25455 by @lunny Fix #25433 Caused by #23260 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-rw-r--r--templates/explore/repo_search.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/explore/repo_search.tmpl b/templates/explore/repo_search.tmpl
index 85c1be8e6e..dac924638f 100644
--- a/templates/explore/repo_search.tmpl
+++ b/templates/explore/repo_search.tmpl
@@ -28,6 +28,8 @@
<input name="q" value="{{.Keyword}}" placeholder="{{.locale.Tr "explore.search"}}…" autofocus>
{{if .PageIsExploreRepositories}}
<input type="hidden" name="only_show_relevant" value="{{.OnlyShowRelevant}}">
+ {{else}}
+ <input type="hidden" name="tab" value="repositories">
{{end}}
<button class="ui primary button">{{.locale.Tr "explore.search"}}</button>
</div>