This commit is contained in:
2018-11-26 17:47:58 +00:00
parent 0d083cf7f8
commit b41a71e862
2 changed files with 4 additions and 4 deletions

View File

@@ -43,9 +43,9 @@ namespace AyaNova.Api.Controllers
<div style=""text-align: center;"">
<div style=""display: inline-block;text-align:left;"">
<h1>{AyaNovaVersion.FullNameAndVersion}</h1>
<a href=""/"">AyaNova Client</a><br/><br/>
<a href=""/docs"">Manual</a><br/><br/>
<a href=""/api-docs"">API explorer</a><br/><br/>
<a href=""/"" target=""_blank"">AyaNova App</a><br/><br/>
<a href=""/docs"" target=""_blank"">AyaNova manual</a><br/><br/>
<a href=""/api-docs"" target=""_blank"">API explorer</a><br/><br/>
<a href=""mailto:support@ayanova.com"">Email AyaNova support</a><br/><br/>
<h4>{LocaleBiz.GetDefaultLocalizedText("HelpLicense").Result}</h4>
<pre>{AyaNova.Core.License.LicenseInfo}</pre>

View File

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