Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Simplesearch routing problem

Started by Daniel Wrightson 5 years ago · 5 replies · 465 views
5 years ago

I'm stuck on a simplesearch problem. I've used the plugin before - but this is the first time I've used it with 1.7 - and I'm using Typhoon, the new theme.

The routing doesn't seem to work - instead of going to www.whatever/search it always reloads the current page with the query attached.

Here's my config file:

YAML
enabled: true
built_in_css: true
built_in_js: true
display_button: false
min_query_length: 3
route: /search
search_content: rendered
template: simplesearch_results
filters:
  category: null
filter_combinator: and
ignore_accented_characters: false
order:
  by: date
  dir: desc
searchable_types:
  title: true
  content: true
  taxonomy: true
  header: false
header_keys_ignored:
  - form
  - forms
  - media_order

After a query it just appends the query field to the current URL, and reloads:

http://localhost/inv2tuscany/villas/italy/tuscany?searchfield=tuscany

I'm rebuilding our site "invitationtotuscany.com" and you can see the plugin works perfectly in the old version that is online - there, I get this:

https://invitationtotuscany.com/search/query:tuscany

current site is on GRAV 1.6.31, new one on 1.7.5
same plugin version, 2.2.1

Hope someone can help.

5 years ago

@dan-james, Using the 'Blog Site' skeleton with Grav 1.7.5 + Quark, which contains the simplesearch plugin it seems to work as you are describing for 1.6.

  • Browsed to http://blog-dev/blog/hero-classes
  • Entered 'London' in search box
  • Result is shown in http://blog-dev/search/query:london

What happens if you switch to Quark?

5 years ago

Thanks @pamtbaau - I don't why I didn't think to check that. It works fine in Quark, but doesn't work in Typhoon, just as it doesn't work in my edited copy of Typhoon. So the problem is in Typhoon. @rhuk have you come across this issue before? cheers, Dan

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 75 1 week ago
Plugins · by Xavier, 4 weeks ago
2 81 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1208 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 74 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 99 2 months ago