From aa3c84e28b313ffc390ec9968adb074f816036f6 Mon Sep 17 00:00:00 2001 From: John Olheiser Date: Wed, 22 Feb 2023 00:31:22 +0800 Subject: [PATCH] Trailing slash for search (#122) Noted by a user on Discord that our search stopped working. It appears that our new host is set up to redirect non-trailing slash paths to trailing slash paths, discarding the query parameters. One option is to change it back, another is this PR which simply adds the trailing slash to the form action. Co-authored-by: jolheiser Reviewed-on: https://gitea.com/gitea/theme/pulls/122 Reviewed-by: pat-s Reviewed-by: Lunny Xiao --- layouts/partials/navbar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 0dfcf8c..2f6c44f 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -6,7 +6,7 @@ {{ if eq .Site.Params.search "nav" }} -
+
{{ end }}