Normalize the url to prevent false failed matches