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