aboutsummaryrefslogtreecommitdiffstats
path: root/templates/explore/code.tmpl
diff options
context:
space:
mode:
authorPhilipp A. Beckmann <pab@pabnet.de>2020-02-25 16:58:37 +0100
committerGitHub <noreply@github.com>2020-02-25 09:58:37 -0600
commitbab6e1ed87ba9abd23bff6f0d886de5ddb1a1a99 (patch)
treeba9ce6f640ccbdd9e294737d183dc9eab6dd89a2 /templates/explore/code.tmpl
parent85e6a1267c634b0316b159874e6e4e18c267c7fb (diff)
downloadgitea-bab6e1ed87ba9abd23bff6f0d886de5ddb1a1a99.tar.gz
gitea-bab6e1ed87ba9abd23bff6f0d886de5ddb1a1a99.zip
Fixed wrong AppSubUrl in multiple templates (#10447)
* Fixed wrong AppSubUrl in OAuth2 app edit page * Replaced all other occurrences of $.AppSubURL for support of sub-paths
Diffstat (limited to 'templates/explore/code.tmpl')
-rw-r--r--templates/explore/code.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/explore/code.tmpl b/templates/explore/code.tmpl
index eb7da976b8..418d669fe9 100644
--- a/templates/explore/code.tmpl
+++ b/templates/explore/code.tmpl
@@ -18,7 +18,7 @@
</h3>
<div>
{{range $term := .SearchResultLanguages}}
- <a class="ui {{if eq $.Language $term.Language}}primary {{end}}basic label" href="{{$.AppSubURL}}/explore/code?q={{$.Keyword}}{{if ne $.Language $term.Language}}&l={{$term.Language}}{{end}}">
+ <a class="ui {{if eq $.Language $term.Language}}primary {{end}}basic label" href="{{AppSubUrl}}/explore/code?q={{$.Keyword}}{{if ne $.Language $term.Language}}&l={{$term.Language}}{{end}}">
<i class="color-icon" style="background-color: {{$term.Color}}"></i>
{{$term.Language}}
<div class="detail">{{$term.Count}}</div>