error/confirm redirect from cportal fix