@Crizz0 as per bantu add before this:
```
if ($mode == 'leaders')
{
    redirect(append_sid(...));
}
```