From 21f1e223d81ee98645abee141e58019d8141dcc9 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 12 Oct 2023 08:56:21 +0800 Subject: [PATCH] Keep filter when showing unfiltered results on explore page (#27192) (#27589) Backport #27192 by @JakobDev Fixes https://codeberg.org/Codeberg/Community/issues/1302 Co-authored-by: JakobDev 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}}