This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user