routing shorthand syntax works with multiple paths

Closes #9913.

We need to expand the match shorthand syntax for every path.