Fixed an issue with subfolders if the connection url has a querystring