fixed incorrect matching of relative URLs