getgrav / grav-plugin-simplesearch

Grav SimpleSearch Plugin
https://getgrav.org
MIT License
44 stars 55 forks source link

If a search is placed on a non home page it leads to 404 error #194

Closed 01Kuzma closed 3 years ago

01Kuzma commented 3 years ago

I have a blog and some other pages. The home page alias point to home page, and it's not the blog page as it's made in many demo skeletons. Let's say that my blog has url address grav-blog. So, once the blog or blog item is opened, the base_url in a search form is appended with grav-blog slug what leads to 404 error. Changing the home page to grav-blog solves the problem. But it's not the solution! I've described it here and found similar issue here