fix: Display correct editor URL (#13251)

This commit is contained in:
Marc Littlemore 2025-02-13 15:35:35 +00:00 committed by GitHub
parent 64c5b6e060
commit 67a4ed18a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"