public static void goBack(final String returnCode) {

        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(returnCode)) {
            CmsRpcAction<CmsReturnLinkInfo> goBackAction = new CmsRpcAction<CmsReturnLinkInfo>() {

                @Override
                public void execute() {

                    start(300, false);
                    CmsCoreProvider.getService().getLinkForReturnCode(returnCode, this);
                }

                @Override
                protected void onResponse(CmsReturnLinkInfo result) {

                    stop(false);
                    if (result.getStatus() == CmsReturnLinkInfo.Status.ok) {
                        Window.Location.assign(result.getLink());
                    } else if (result.getStatus() == CmsReturnLinkInfo.Status.notfound) {
                        CmsMessages msg = org.opencms.ade.sitemap.client.Messages.get();
                        String title = msg.key(
                            org.opencms.ade.sitemap.client.Messages.GUI_RETURN_PAGE_NOT_FOUND_TITLE_0);
                        String content = msg.key(
                            org.opencms.ade.sitemap.client.Messages.GUI_RETURN_PAGE_NOT_FOUND_TEXT_0);
                        CmsAlertDialog alert = new CmsAlertDialog(title, content);
                        alert.center();
                    }
                }
            };

            goBackAction.execute();
        } else {
            CmsSitemapController controller = CmsSitemapView.getInstance().getController();
            CmsClientSitemapEntry root = controller.getData().getRoot();
            String newPath = root.getSitePath();
            controller.leaveEditor(newPath);
        }
    }
public static void goBack ( final String returnCode ) { if ( CmsStringUtil . isNotEmptyOrWhitespaceOnly ( returnCode ) ) { CmsRpcAction < CmsReturnLinkInfo > goBackAction = new CmsRpcAction < CmsReturnLinkInfo > ( ) { @ Override public void execute ( ) { start ( 300 , false ) ; CmsCoreProvider . getService ( ) . getLinkForReturnCode ( returnCode , this ) ; } @ Override protected void onResponse ( CmsReturnLinkInfo result ) { stop ( false ) ; if ( result . getStatus ( ) == CmsReturnLinkInfo . Status . ok ) { Window . Location . assign ( result . getLink ( ) ) ; } else if ( result . getStatus ( ) == CmsReturnLinkInfo . Status . notfound ) { CmsMessages msg = org . opencms . ade . sitemap . client . Messages . get ( ) ; String title = msg . key ( org . opencms . ade . sitemap . client . Messages . GUI_RETURN_PAGE_NOT_FOUND_TITLE_0 ) ; String content = msg . key ( org . opencms . ade . sitemap . client . Messages . GUI_RETURN_PAGE_NOT_FOUND_TEXT_0 ) ; CmsAlertDialog alert = new CmsAlertDialog ( title , content ) ; alert . center ( ) ; } } } ; goBackAction . execute ( ) ; } else { CmsSitemapController controller = CmsSitemapView . getInstance ( ) . getController ( ) ; CmsClientSitemapEntry root = controller . getData ( ) . getRoot ( ) ; String newPath = root . getSitePath ( ) ; controller . leaveEditor ( newPath ) ; } }
Opens the publish dialog without changes check.<p>

@param returnCode the return code previously passed to the sitemap editor