Changing redirect endpoint