diff --git a/templates/explore/repo_search.tmpl b/templates/explore/repo_search.tmpl
index 4c72affea0..c1a1418349 100644
--- a/templates/explore/repo_search.tmpl
+++ b/templates/explore/repo_search.tmpl
@@ -28,6 +28,8 @@
 		{{template "shared/searchinput" dict "locale" .locale "Value" .Keyword "AutoFocus" true}}
 		{{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>