Build URL routing helper for pattern.