[views] fix a small redirect bug