From fa4da6f841ba802f3a00155f1c3e79fa55f455c3 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Mon, 13 Sep 2021 21:50:41 +0200 Subject: [PATCH] Update dashboard app with base path setting --- src/dashboards/ElsaDashboard/Pages/_Host.cshtml | 15 ++++++++------- src/dashboards/ElsaDashboard/appsettings.json | 3 +++ src/designer/elsa-workflows-studio/src/index.html | 2 +- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/dashboards/ElsaDashboard/Pages/_Host.cshtml b/src/dashboards/ElsaDashboard/Pages/_Host.cshtml index 16a970444..70ebfc946 100644 --- a/src/dashboards/ElsaDashboard/Pages/_Host.cshtml +++ b/src/dashboards/ElsaDashboard/Pages/_Host.cshtml @@ -2,6 +2,7 @@ @inject IConfiguration Configuration; @{ var serverUrl = Configuration["Elsa:Server:BaseAddress"]; + var basePath = Configuration["Hosting:BasePath"]; } @@ -9,15 +10,15 @@ Elsa Workflows - - - - - - + + + + + + - + diff --git a/src/dashboards/ElsaDashboard/appsettings.json b/src/dashboards/ElsaDashboard/appsettings.json index 554be01d8..d56e85dfc 100644 --- a/src/dashboards/ElsaDashboard/appsettings.json +++ b/src/dashboards/ElsaDashboard/appsettings.json @@ -7,6 +7,9 @@ } }, "AllowedHosts": "*", + "Hosting": { + "BasePath": "" + }, "Elsa": { "Server": { "BaseAddress": "https://localhost:11000" diff --git a/src/designer/elsa-workflows-studio/src/index.html b/src/designer/elsa-workflows-studio/src/index.html index 2d3cc97f6..b62b86856 100644 --- a/src/designer/elsa-workflows-studio/src/index.html +++ b/src/designer/elsa-workflows-studio/src/index.html @@ -212,7 +212,7 @@ // Get a handle to the elsa-studio-root element. const elsaStudioRoot = document.querySelector('elsa-studio-root'); - // Alternatively, configure Elsa during the 'initializing' event. + // Configure Elsa during the 'initializing' event. elsaStudioRoot.addEventListener('initializing', e => { const elsa = e.detail; elsa.pluginManager.registerPlugins([