PUBAPI-1017 - when checking paths, make sure we're only running regex
on the pathname, not also on query strings.