Fixes bug in URL matching when authorizing access to a resource