fix extra portal_url in url