Revert "redirect issue fix #2405"

This reverts commit 7894c7d56baeecb211bbce7a6e3411ea5af9cdd4.