Browse Source

Update Startup.cs

pull/1/head
Sebastian Stehle 9 years ago
committed by GitHub
parent
commit
891674a6ae
  1. 6
      src/Squidex/Startup.cs

6
src/Squidex/Startup.cs

@ -159,7 +159,8 @@ namespace Squidex
app.UseDeveloperExceptionPage(); app.UseDeveloperExceptionPage();
app.UseWebpackProxy(); app.UseWebpackProxy();
app.Use((context, next) => { app.Use((context, next) =>
{
if (!Path.HasExtension(context.Request.Path.Value)) if (!Path.HasExtension(context.Request.Path.Value))
{ {
context.Request.Path = new PathString("/index.html"); context.Request.Path = new PathString("/index.html");
@ -169,7 +170,8 @@ namespace Squidex
} }
else else
{ {
app.Use((context, next) => { app.Use((context, next) =>
{
if (!Path.HasExtension(context.Request.Path.Value)) if (!Path.HasExtension(context.Request.Path.Value))
{ {
context.Request.Path = new PathString("/build/index.html"); context.Request.Path = new PathString("/build/index.html");

Loading…
Cancel
Save