code: public URL getRedirectURL(FacesContext context) throws MalformedURLException {
  
          ExternalContext extContext = context.getExternalContext();
  
          return new URL(extContext.getRequestScheme(),
                  extContext.getRequestServerName(),
                  extContext.getRequestServerPort(),
                  context.getApplication().getViewHandler().getRedirectURL(context,
                                                                           getToViewId(context),
                                                                           SharedUtils.evaluateExpressions(context, getParameters()),
                                                                           isIncludeViewParams()));
  
      }
docs: <p class="changed_added_2_0">Construct an absolute URL suitable for a
  "redirect" to this <code>NavigationCase</code> instance using {@link
  javax.faces.application.ViewHandler#getRedirectURL} on the path
  portion of the url.</p>
  
  @param context the {@link FacesContext} for the current request
  
  @throws MalformedURLException if the process of constructing the
  URL causes this exception to be thrown.