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

Search with JavaScript disabled #75

Merged
merged 2 commits into from
Feb 12, 2020
Merged

Search with JavaScript disabled #75

merged 2 commits into from
Feb 12, 2020

Conversation

brickcamp
Copy link
Contributor

Hi there,

thanks for this amazing plugin. I noticed that it doesn't work with javascript disabled (tested on https://learn.getgrav.org/16/search and my own site). So I tried some stuff and this is what worked for me. It loads the result page on hitting Enter - instead of reloading the search page.

As the default submit is deactivated if javascript is active, this shouldn't have a side effect. If it has nevertheless or could be done better, please let me know.

Tobias added 2 commits August 4, 2019 15:02
Added a name to the input value and an action via GET. This way, the page redirects to the search results on Enter with JavaScript disabled
@rhukster rhukster merged commit be3944c into trilbymedia:develop Feb 12, 2020
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

Successfully merging this pull request may close these issues.

2 participants