diff --git a/internal/web/gist.go b/internal/web/gist.go index 9c60430..c108dcc 100644 --- a/internal/web/gist.go +++ b/internal/web/gist.go @@ -121,7 +121,8 @@ func allGists(ctx echo.Context) error { if strings.HasSuffix(urlctx, "search") { setData(ctx, "htmlTitle", "Search results") setData(ctx, "mode", "search") - setData(ctx, "searchQuery", template.URL("&q="+ctx.QueryParam("q"))) + setData(ctx, "searchQuery", ctx.QueryParam("q")) + setData(ctx, "searchQueryUrl", template.URL("&q="+ctx.QueryParam("q"))) urlPage = "search" gists, err = models.GetAllGistsFromSearch(currentUserId, ctx.QueryParam("q"), pageInt-1, sort, order) } else if strings.HasSuffix(urlctx, "all") { diff --git a/templates/base/base_header.html b/templates/base/base_header.html index a04cf42..1a46465 100644 --- a/templates/base/base_header.html +++ b/templates/base/base_header.html @@ -73,7 +73,7 @@
@@ -191,7 +191,7 @@ {{ else }} -