corrected redirect after updating settings when referrer is nil