about summary refs log tree commit diff stats
path: root/frontend/templates
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/templates')
-rw-r--r--frontend/templates/index.gotmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/templates/index.gotmpl b/frontend/templates/index.gotmpl
index 0211a5b..ee37c0f 100644
--- a/frontend/templates/index.gotmpl
+++ b/frontend/templates/index.gotmpl
@@ -25,7 +25,9 @@
         {{- range $key, $value := .Sources }}
           <a
             {{ if eq $.Source.Name $value.Name }}class="current"{{ end }}
-            href="/{{ .Importer }}/{{ $key }}/search{{ and $.Query (printf "?query=%s" $.Query) }}"
+            href="/{{ .Importer }}/{{ $key }}/search{{ if and (ne $.Source.Name $value.Name) $.Query }}
+              {{- printf "?query=%s" $.Query -}}
+            {{ end }}"
           >
             {{- $value.Name -}}
           </a>