I have search and multilanguage on my website, however there is one thing I don’t understand. When I use the search as e.g. an English user, I search in the English text files. However when I get the results of the search and I’m on the page where I listed them and I choose another language e.g. German, the query disappears from the url.
$page->url($language->code()) <-- this is the code what I use for changing the language, but I don’t know what should I write after the code(), because I would like to give back the query to the end of the url.
Where’s the point of using the same search for both languages, anyway?
If you change the page, a new request is made to the server and you would have to store your search in the session or something like that to preserver your search.