Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Make table header sorting links point to /search always so the work on home

Cette révision appartient à :
SpamNeko 2017-05-14 13:44:39 +01:00
Parent b3dc53ddc5
révision 145dc40cd8

Voir le fichier

@ -50,9 +50,10 @@ var FuncMap = template.FuncMap{
values.Set("sort", sortBy) values.Set("sort", sortBy)
values.Set("order", strconv.FormatBool(order)) values.Set("order", strconv.FormatBool(order))
currentUrl.RawQuery=values.Encode() url, _ := Router.Get("search").URL()
url.RawQuery=values.Encode()
return template.URL(currentUrl.String()) return template.URL(url.String())
}, },
"genNav": func(nav Navigation, currentUrl *url.URL, pagesSelectable int) template.HTML { "genNav": func(nav Navigation, currentUrl *url.URL, pagesSelectable int) template.HTML {
var ret = "" var ret = ""