summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-12-01 21:31:40 +0100
committerGitHub <noreply@github.com>2023-12-01 22:31:40 +0200
commit6ad145f5bd5fc2d32a5b829a708e0f9038191c63 (patch)
treed79f9b024f21db597a70f1e65e91f3e521713279 /templates
parent004ab3758c19244c2d961fce71fb32e5bb9949db (diff)
downloadgitea-6ad145f5bd5fc2d32a5b829a708e0f9038191c63.tar.gz
gitea-6ad145f5bd5fc2d32a5b829a708e0f9038191c63.zip
Keep profile tab when clicking on Language (#28320)
Fixes https://codeberg.org/Codeberg/Community/issues/1355
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}}