getRedirectCode() was reading the wrong option!