Skip to content

Commit 95db95e

Browse files
GiteaBotwxiaoguang
andauthored
Fix incorrect "tab" parameter for repo search sub-template (#27755) (#27764)
Backport #27755 by wxiaoguang Co-authored-by: wxiaoguang <[email protected]>
1 parent ffab2b7 commit 95db95e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/explore/repo_search.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
{{template "shared/searchinput" dict "Value" .Keyword "AutoFocus" true}}
77
{{if .PageIsExploreRepositories}}
88
<input type="hidden" name="only_show_relevant" value="{{.OnlyShowRelevant}}">
9-
{{else}}
10-
<input type="hidden" name="tab" value="repositories">
9+
{{else if .TabName}}
10+
<input type="hidden" name="tab" value="{{.TabName}}">
1111
{{end}}
1212
<button class="ui primary button">{{ctx.Locale.Tr "explore.search"}}</button>
1313
</div>

0 commit comments

Comments
 (0)