Bring redirectUrl into scope