From 6bea19ef003a2702a254bb09a68322e61020ddde Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 26 Apr 2023 14:41:12 +0200 Subject: [PATCH] Fix workflow server and designer sample project --- .../Pages/Index.cshtml | 23 ++++++++++++------- .../appsettings.json | 5 +++- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/samples/aspnet/Elsa.Samples.WorkflowServerAndDesigner/Pages/Index.cshtml b/src/samples/aspnet/Elsa.Samples.WorkflowServerAndDesigner/Pages/Index.cshtml index d76ef7cc9..f77aacf4e 100644 --- a/src/samples/aspnet/Elsa.Samples.WorkflowServerAndDesigner/Pages/Index.cshtml +++ b/src/samples/aspnet/Elsa.Samples.WorkflowServerAndDesigner/Pages/Index.cshtml @@ -1,8 +1,8 @@ -@page -@using Elsa.Workflows.Designer -@using Microsoft.AspNetCore.Mvc.TagHelpers +@page "/" +@inject IConfiguration Configuration; @{ - var serverUrl = Url.Content("elsa/api"); + var serverUrl = Url.Content("~/elsa/api"); + var basePath = Configuration["Hosting:BasePath"]!; } @@ -12,13 +12,20 @@ Elsa Workflows 3.0 - - - + + + - + + +
+ + + +
+
\ No newline at end of file diff --git a/src/samples/aspnet/Elsa.Samples.WorkflowServerAndDesigner/appsettings.json b/src/samples/aspnet/Elsa.Samples.WorkflowServerAndDesigner/appsettings.json index 10f68b8c8..fc2153c4b 100644 --- a/src/samples/aspnet/Elsa.Samples.WorkflowServerAndDesigner/appsettings.json +++ b/src/samples/aspnet/Elsa.Samples.WorkflowServerAndDesigner/appsettings.json @@ -5,5 +5,8 @@ "Microsoft.AspNetCore": "Warning" } }, - "AllowedHosts": "*" + "AllowedHosts": "*", + "Hosting": { + "BasePath": "" + } }