mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix: Display correct editor URL (#13251)
This commit is contained in:
parent
64c5b6e060
commit
67a4ed18a1
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue