Improved URL parsing by comparing static path parts in the template to
the request URL