The config is configured as follows:

'parts/<group:[\w_\/-]+>/<subgroup:[\w_\/-]+>/<nodes:.+>'=>'node/view', 

When clicking on the link of the form

site_point_ru / parts / geely / ck / node-1 / node2 / 110-10-040

In queryParams, the following array is obtained

 array (size=3) 'group' => string 'geely/ck/node-1' (length=15) 'subgroup' => string 'node2' (length=5) 'nodes' => string '110-10-040' (length=10) 

In this case, several parameters belonging to the node are recorded in the group parameter

It should be like this:

 array (size=3) 'group' => string 'geely' (length=6) 'subgroup' => string 'ck' (length=2) 'nodes' => string 'node-1/node2/110-10-040' (length=24) 

Tell me how to solve this problem?

  • one
    And why is there every \/- parameter? If to write parts/<group:[\w_]+>/<subgroup:[\w_]+>/<nodes:.+>'=>'node/view does not roll? - Alexey Shimansky
  • Thank you, you were right - LANSELOT

0