Add redirect functionality.