Common `handleRedirectURL` method. Get rid of `didCancel` flag in callbacks.