Process route parameters

Use path function if route parameter provided in menu.yml.