Update redirect functionality