summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-12-03 22:54:53 +0800
committerGitHub <noreply@github.com>2023-12-03 14:54:53 +0000
commitbf537adf8ab2f1e92efc396b3ab9a1d64c632d3e (patch)
tree4430077d9da044abf5a6a5d784adad74cf7d6519 /templates
parent8c8c24f8eb0338adebf3601750aa41f9574adc7d (diff)
downloadgitea-bf537adf8ab2f1e92efc396b3ab9a1d64c632d3e.tar.gz
gitea-bf537adf8ab2f1e92efc396b3ab9a1d64c632d3e.zip
Keep profile tab when clicking on Language (#28320) (#28331)
Backport #28320 by @JakobDev Fixes https://codeberg.org/Codeberg/Community/issues/1355 Co-authored-by: JakobDev <jakobdev@gmx.de>
Diffstat (limited to 'templates')
-rw-r--r--templates/explore/repo_list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/explore/repo_list.tmpl b/templates/explore/repo_list.tmpl
index 1976ed5a15..05406ad559 100644
--- a/templates/explore/repo_list.tmpl
+++ b/templates/explore/repo_list.tmpl
@@ -28,7 +28,7 @@
</div>
<div class="flex-item-trailing">
{{if .PrimaryLanguage}}
- <a class="muted" href="{{$.Link}}?q={{$.Keyword}}&sort={{$.SortType}}&language={{.PrimaryLanguage.Language}}">
+ <a class="muted" href="{{$.Link}}?q={{$.Keyword}}&sort={{$.SortType}}&language={{.PrimaryLanguage.Language}}{{if $.TabName}}&tab={{$.TabName}}{{end}}">
<span class="flex-text-inline"><i class="color-icon gt-mr-3" style="background-color: {{.PrimaryLanguage.Color}}"></i>{{.PrimaryLanguage.Language}}</span>
</a>
{{end}}