This commit is contained in:
@@ -414,11 +414,11 @@ namespace AyaNova
|
|||||||
//AUTOID VALUES INITIALIZATION
|
//AUTOID VALUES INITIALIZATION
|
||||||
ServerBootConfig.SetMostRecentAutoIdValuesFromDatabase(dbContext);
|
ServerBootConfig.SetMostRecentAutoIdValuesFromDatabase(dbContext);
|
||||||
|
|
||||||
//SPA FALLBACK ROUTE
|
//SPA FALLBACK ROUTE
|
||||||
//this ensures that a refresh at the client will not 404 but rather force back to the index.html app page and then handled internally
|
|
||||||
//by the client
|
|
||||||
app.Use(async (context, next) =>
|
app.Use(async (context, next) =>
|
||||||
{
|
{
|
||||||
|
//to support html5 pushstate routing in spa
|
||||||
|
//this ensures that a refresh at the client will not 404 but rather force back to the index.html app page and then handled internally by the client
|
||||||
await next();
|
await next();
|
||||||
if (context.Response.StatusCode == 404 && !Path.HasExtension(context.Request.Path.Value))
|
if (context.Response.StatusCode == 404 && !Path.HasExtension(context.Request.Path.Value))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user