Fixing issues with urlParts