getgrav / getgrav/grav-plugin-simplesearch

How to configure redirection on submit?

Open
#167 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

simplesearch.yaml file:
```
enabled: true
built_in_css: true
built_in_js: true
display_button: false
min_query_length: 3
route: /help
search_content: raw
template: categories
filters: @self
filter_combinator: or
ignore_accented_characters: false
order:
by: date
dir: desc
```

I have `header.twig.html` template which have `simplesearch-box` element. This template is added to different routes. So for `simplesearch` to work I need to redirect it to `/help` page because of `route: /help` configured. How can I do that or may be there are another ways to get same behavior?

Thanks in advance

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.