code: public void leaveUnsaved(String targetUri) {
  
          setPageChanged(false, true);
          CmsDebugLog.consoleLog("assigning window location: " + targetUri);
          Window.Location.assign(targetUri);
      }
docs: Method to leave the page without saving.<p>
  
  @param targetUri the new URI to call