Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How-To? pre-populate search? #189

Open
jason-unleashed opened this issue May 13, 2020 · 0 comments
Open

How-To? pre-populate search? #189

jason-unleashed opened this issue May 13, 2020 · 0 comments

Comments

@jason-unleashed
Copy link

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant