public void forward() {

        m_context.getSetupBean().prepareStep10();
        CmsSetupBean bean = m_context.getSetupBean();
        VaadinServletRequest request = (VaadinServletRequest)(VaadinRequest.getCurrent());
        String servletMapping = bean.getServletMapping();
        String openLink = null;

        if (!servletMapping.startsWith("/")) {
            servletMapping = "/" + servletMapping;
        }
        if (servletMapping.endsWith("/*")) {
            // usually a mapping must be in the form "/opencms/*", cut off all slashes
            servletMapping = servletMapping.substring(0, servletMapping.length() - 2);
        }
        openLink = request.getContextPath() + servletMapping + (bean.hasIndexHtml() ? "/index.html" : "/system/login");

        A_CmsUI.get().getPage().setLocation(openLink);
    }
public void forward ( ) { m_context . getSetupBean ( ) . prepareStep10 ( ) ; CmsSetupBean bean = m_context . getSetupBean ( ) ; VaadinServletRequest request = ( VaadinServletRequest ) ( VaadinRequest . getCurrent ( ) ) ; String servletMapping = bean . getServletMapping ( ) ; String openLink = null ; if ( ! servletMapping . startsWith ( "/" ) ) { servletMapping = "/" + servletMapping ; } if ( servletMapping . endsWith ( "/*" ) ) { servletMapping = servletMapping . substring ( 0 , servletMapping . length ( ) - 2 ) ; } openLink = request . getContextPath ( ) + servletMapping + ( bean . hasIndexHtml ( ) ? "/index.html" : "/system/login" ) ; A_CmsUI . get ( ) . getPage ( ) . setLocation ( openLink ) ; }
Proceed to next step.