Redirect to a link in a new window automatically

hi there,

I have a requirement .
in the main window, it will pop up a window for choosing. when I choose what i need and click the ok button, it will go the listener to implement some logic as below code snippet and then I want to it redirect to another link automatically in a new window.

AbstractEditor editor = openEditor(userBuilding, WindowManager.OpenType.DIALOG);
    editor.addCloseWithCommitListener(() -> {
      .........................................
        openWindow("mainWindow",  WindowManager.OpenType.NEW_WINDOW,map);

I am using open window however it will always open a new tab instead of a window.
can someone help me out?

Hi,

WindowManager.OpenType.NEW_WINDOW is designed for desktop UI. In your case, you can use either NEW_TAB or rather DIALOG.