From 67a4ed18a13cb2bc54b3472b9a8beb2f274c2bd2 Mon Sep 17 00:00:00 2001 From: Marc Littlemore Date: Thu, 13 Feb 2025 15:35:35 +0000 Subject: [PATCH] fix: Display correct editor URL (#13251) --- packages/cli/src/commands/start.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/start.ts b/packages/cli/src/commands/start.ts index 56c648b490..cec2f395bb 100644 --- a/packages/cli/src/commands/start.ts +++ b/packages/cli/src/commands/start.ts @@ -67,11 +67,13 @@ export class Start extends BaseCommand { override needsCommunityPackages = true; + private getEditorUrl = () => Container.get(UrlService).getInstanceBaseUrl(); + /** * Opens the UI in browser */ private openBrowser() { - const editorUrl = Container.get(UrlService).baseUrl; + const editorUrl = this.getEditorUrl(); open(editorUrl, { wait: true }).catch(() => { this.logger.info( @@ -328,7 +330,8 @@ export class Start extends BaseCommand { // Start to get active workflows and run their triggers await this.activeWorkflowManager.init(); - const editorUrl = Container.get(UrlService).baseUrl; + const editorUrl = this.getEditorUrl(); + this.log(`\nEditor is now accessible via:\n${editorUrl}`); // Allow to open n8n editor by pressing "o"