mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix: Display correct editor URL (#13251)
This commit is contained in:
@@ -67,11 +67,13 @@ export class Start extends BaseCommand {
|
|||||||
|
|
||||||
override needsCommunityPackages = true;
|
override needsCommunityPackages = true;
|
||||||
|
|
||||||
|
private getEditorUrl = () => Container.get(UrlService).getInstanceBaseUrl();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens the UI in browser
|
* Opens the UI in browser
|
||||||
*/
|
*/
|
||||||
private openBrowser() {
|
private openBrowser() {
|
||||||
const editorUrl = Container.get(UrlService).baseUrl;
|
const editorUrl = this.getEditorUrl();
|
||||||
|
|
||||||
open(editorUrl, { wait: true }).catch(() => {
|
open(editorUrl, { wait: true }).catch(() => {
|
||||||
this.logger.info(
|
this.logger.info(
|
||||||
@@ -328,7 +330,8 @@ export class Start extends BaseCommand {
|
|||||||
// Start to get active workflows and run their triggers
|
// Start to get active workflows and run their triggers
|
||||||
await this.activeWorkflowManager.init();
|
await this.activeWorkflowManager.init();
|
||||||
|
|
||||||
const editorUrl = Container.get(UrlService).baseUrl;
|
const editorUrl = this.getEditorUrl();
|
||||||
|
|
||||||
this.log(`\nEditor is now accessible via:\n${editorUrl}`);
|
this.log(`\nEditor is now accessible via:\n${editorUrl}`);
|
||||||
|
|
||||||
// Allow to open n8n editor by pressing "o"
|
// Allow to open n8n editor by pressing "o"
|
||||||
|
|||||||
Reference in New Issue
Block a user