MDL-24955 prevent infinite redirect loop when not enrolled and self enrol not available