resolveRedirectUri static method
Implementation
@visibleForTesting
static String resolveRedirectUri(Uri currentUri, Uri redirectUri) {
if (redirectUri.hasScheme) {
/// This is a full URL which has to be redirected to as is.
return redirectUri.toString();
}
/// This is relative with or without leading slash and is
/// resolved against the URL of the original request.
return currentUri.resolveUri(redirectUri).toString();
}