diff options
Diffstat (limited to 'frontend/templates')
-rw-r--r-- | frontend/templates/index.gotmpl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/templates/index.gotmpl b/frontend/templates/index.gotmpl index c5981b3..dbe182a 100644 --- a/frontend/templates/index.gotmpl +++ b/frontend/templates/index.gotmpl @@ -14,9 +14,10 @@ {{- range $key, $value := .Sources }} <a {{ if eq $.Source.Name $value.Name }}class="current"{{ end }} - href="/options/{{ $key }}/search" - >{{ $value.Name }}</a + href="/options/{{ $key }}/search{{ and $.Query (printf "?query=%s" $.Query) }}" > + {{- $value.Name -}} + </a> {{- end }} </nav> </header> |