Fixes matched routes from bubbling over to other segment routes. 

This PR is an attempt to fix #4333 matched routes from bubbling over to other segment routes by assembling the url based on the matched route.