There is a rule for routing 'search/<description:[\d]+>' => 'search' , where the incoming description goes as data for searching the database, so, if I enter intovy data, the search passes, but if I will enter the string data, it searches for such a page, and of course I don’t have one and it gives 400. How can I fix this?

    1 answer 1

    Change the rule to 'search/<description:[\w-]+>' => 'search' .