Search form on multilanguage pages not posting query

Do I need a special routes setup for a multilanguage search?

In the header of the page i have a input form <form name="search" action="/search">. The folder setup, the controller and the search page are the same as in the cookbook.

Unfortunately the search only works if the form is on the actual search results page without the action. Despite the action="/search" it doesn’t post any query when it’s not on the actual search results page.

Do I need a route so that the url /search is working or a search.txt for both languages or something similar?

No, but you should use a real link:

action="<?php echo page('search')->url() ?>"
1 Like

Perfect!