From bf24852b204a0933855f8f7c3babd12080e6467f Mon Sep 17 00:00:00 2001 From: JakobDev Date: Thu, 12 Oct 2023 00:10:51 +0200 Subject: [PATCH] Keep filter when showing unfiltered results on explore page (#27192) Fixes https://codeberg.org/Codeberg/Community/issues/1302 --------- Co-authored-by: wxiaoguang --- templates/explore/repo_search.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/explore/repo_search.tmpl b/templates/explore/repo_search.tmpl index 1d7030c566..31b00d29e3 100644 --- a/templates/explore/repo_search.tmpl +++ b/templates/explore/repo_search.tmpl @@ -36,7 +36,7 @@ {{if and .PageIsExploreRepositories .OnlyShowRelevant}}
- {{ctx.Locale.Tr "explore.relevant_repositories" ((print $.Link "?only_show_relevant=0")|Escape) | Safe}} + {{ctx.Locale.Tr "explore.relevant_repositories" ((printf "?only_show_relevant=0&sort=%s&q=%s&language=%s" $.SortType (QueryEscape $.Keyword) (QueryEscape $.Language))|Escape) | Safe}}
{{end}}