HW2-3 Remember the setting with redirect