diff --git a/src/Electron/electron.ts b/src/Electron/electron.ts index ddeba5fe..2ef9d48d 100644 --- a/src/Electron/electron.ts +++ b/src/Electron/electron.ts @@ -327,7 +327,7 @@ export class ElectronContainer extends WebContainerBase { this.windowManager.initializeWindow(electronWindow, windowName, newOptions); } - electronWindow.loadURL(url); + electronWindow.loadURL(this.ensureAbsoluteUrl(url)); const newWindow = this.wrapWindow(electronWindow); this.emit("window-created", { sender: this, name: "window-created", window: newWindow, windowId: electronWindow.id, windowName: windowName });