getgrav / getgrav/grav-plugin-simplesearch

How-To? pre-populate search?

Open
#189 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
46
Forks
55
Avg merge
5h 44m
Merged PRs (30d)
1

Description

I want to change the 404 error page to include either the results from a simplesearch or the simple search form pre-populated with the offending url.

I recently "fixed" the URLs for all of my articles (all lowercase, no spaces) but I can't edit the httpd.conf to rewrite to lower and the .htaccess to change each character to lowercase seems to mess up the route (http://server/grav/Article > http://server/article) and I don't want to go down that hole.

Ideally, I want the error page to display search results. So the basic flow would be someone goes to http://server/grav/Some-Article and instead of displaying a static 404 error page it goes to a simplesearch results for "Some Article".

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.