Update route helper to match URL::route

This updates the `route` helper to accept the same arguments as the function it calls.
Merge pull request #5470 from RyanNielson/patch-1

Update route helper to match URL::route