There is a link of the form site.ru/site/search?make=1&model=2
with the help of its rules of routing was able to convert the link to this form site.ru/search/audi/a100
it's all good.
After I was happy created a form for search and then came the problem, when you submit the form, a get request on the link site.ru/site/search
+ get the options for the selected users in the fields make and model I get a link site.ru/site/search?make=1&model=2
.If you just paste the link so, I got what I needed:
<a href="<?=Url::to(['/site/search', 'make' => 1, 'model' => 2])?>"></a>
But if the request is sent with the same get parameters through the form, the url is not converted
<form action="<?=Url::to(['/site/search'])?>" method="GET">
<option value="2">A 100</option>
The question of how to deal with these? What solutions are there?
Read about the solution that link to form in js and when you click on the search button to link to done in js? but is there no other solution?