fixed problem with matching URL without trailing slash