[EXT-299] Added hack to fix SSO redirect loop