Hello to all! In his project on Yii2 implemented user-friendly (CNC) links, as described in the article here . I write alias: 'test-alias.html' in the database, and I write 'site / about' in the route and everything works on Ur. But if you write a route in the database type 'category / 2', the CNC link is not formed (just goes to mysite.com/ru/category/2). My link is formed like this:
Url::to(['category/view', 'id' => $hit->id]) and in UrlManager there is a rule:
'category/<id:\d+>' => 'category/view', How to make so that when you click on the link type "category / 2" was formed and opened CNC link?