diff --git a/server/AyaNova/Controllers/ApiRootController.cs b/server/AyaNova/Controllers/ApiRootController.cs index 2ed19b10..bc51b6bb 100644 --- a/server/AyaNova/Controllers/ApiRootController.cs +++ b/server/AyaNova/Controllers/ApiRootController.cs @@ -43,9 +43,9 @@ namespace AyaNova.Api.Controllers
{AyaNova.Core.License.LicenseInfo}
diff --git a/server/AyaNova/Startup.cs b/server/AyaNova/Startup.cs
index 440f99e5..a74c80e9 100644
--- a/server/AyaNova/Startup.cs
+++ b/server/AyaNova/Startup.cs
@@ -434,7 +434,7 @@ namespace AyaNova
//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();
- if (context.Response.StatusCode == 404 && !Path.HasExtension(context.Request.Path.Value))
+ if (context.Request.Path.Value!= "/docs" && context.Response.StatusCode == 404 && !Path.HasExtension(context.Request.Path.Value))
{
context.Request.Path = "/index.html";
context.Response.StatusCode = 200;