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.
Thank you for your answers!