algolia / jekyll-algolia

Add fast and relevant search to your Jekyll site
https://community.algolia.com/jekyll-algolia/
MIT License
214 stars 35 forks source link

Transforming 404 pages into search pages #28

Open pixelastic opened 6 years ago

pixelastic commented 6 years ago

This has been originally posted on https://github.com/algolia/algoliasearch-jekyll-hyde/issues/4

When a URL tries to reach a post that does not resolve to a real page, such as http://community.algolia.com/algoliasearch-jekyll-hyde/whatever currently the visitor is shown the 404.html page. But now that we have Search, how about having JavaScript take the "whatever" and put it in the search form, and automatically issue a search?

I don't think this is something that could be part of the plugin directly, but I'd be interested into adding this to themes.

j-f1 commented 6 years ago

I’ve seen some pages do this (usually with something like Google) and they often replace any / in the URL with a space.

parramattacameras commented 5 years ago

Any progress on this? @j-f1 @pixelastic