From bf10f8b037dcec5c40b4e12e713b69e69ae38a48 Mon Sep 17 00:00:00 2001 From: Martyn Welch <martyn.welch@collabora.com> Date: Thu, 26 Mar 2020 12:02:34 +0000 Subject: [PATCH] Fixing URL used for search The current search is using the URL "<site>/search", which is getting redirected to the true location "<site>/search/". When running through Hugo, the server it runs on localhost is maintaining the GET request across the redirect, the hosting isn't. The easiest (and arguably best) way or dealing with this is to correct the URL so that no redirect is needed. Signed-off-by: Martyn Welch <martyn.welch@collabora.com> --- themes/beautifulhugo/layouts/partials/nav.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/beautifulhugo/layouts/partials/nav.html b/themes/beautifulhugo/layouts/partials/nav.html index 7955d8157..86f99c0ee 100644 --- a/themes/beautifulhugo/layouts/partials/nav.html +++ b/themes/beautifulhugo/layouts/partials/nav.html @@ -53,7 +53,7 @@ {{ end }} <li> - <form action="{{ "search" | absURL }}"> + <form action="{{ "search/" | absURL }}"> <input id="search-query" name="s" placeholder="Search Apertis"/> </form> </li> -- GitLab