Help for debugging the portal redirect