lucachr / pelican-mg

A responsive, minimal theme for Pelican that uses UIkit.
MIT License
59 stars 34 forks source link

Fixed issue with search not working from category page #11

Open clamytoe opened 4 years ago

clamytoe commented 4 years ago

I noticed that when trying to search for a term from any of the category pages that it would try and redirect the search to /category/search.html and I was getting a 404 error because that doesn't exist. I noticed in the base.html template that the action in the search form was just set to "search.html" so I changed it to:

<form class="uk-search" action="{{ SITEURL }}/search.html" data-uk-search>

I did that for both instances of the search form and my issue went away.