Process route parameters

Use path function if route parameter provided in menu.yml.
Merge pull request #1162 from ntomka/menu_yml_patch

Process route parameters in menu.yml