mirror of
https://gitea.com/gitea/theme.git
synced 2026-02-03 03:23:17 +08:00
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 <john.olheiser@gmail.com> Reviewed-on: https://gitea.com/gitea/theme/pulls/122 Reviewed-by: pat-s <pat-s@noreply.gitea.io> Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
</a>
|
||||
{{ if eq .Site.Params.search "nav" }}
|
||||
<!-- this works together with assets/js/search.js from the docs.gitea.io -->
|
||||
<form action="{{ "search" | absLangURL }}">
|
||||
<form action="{{ "search" | absLangURL }}/">
|
||||
<input id="search-query" name="s" placeholder="Search" />
|
||||
</form>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user