changed portalUrl value to a string