Fixing portal_url by passing in context to get_config directly