redirect occurs when indexActive