fixed issue where path did not include query string