Redirect to the index page or to the rediret_to param