mirror of https://github.com/abpframework/abp
Merge pull request #3641 from liangshiw/liangshiwei/docs-module
Redirect to home page when an invalid URL or missing documentpull/3760/head
commit
f0efccf877
@ -1,17 +1,19 @@
|
|||||||
@using Volo.Docs.Pages.Documents.Shared.DocumentNotFoundComponent
|
@model Volo.Docs.Pages.Documents.Shared.ErrorComponent.ErrorPageModel
|
||||||
@model DocumentNotFoundPageModel
|
|
||||||
@{
|
@{
|
||||||
}
|
}
|
||||||
<div class="row position-relative vh-100" style="background: #e8e8e8;">
|
<div class="row position-relative vh-100" style="background: #e8e8e8;">
|
||||||
<div class="center">
|
<div class="center" id="DocumentErrorContainer">
|
||||||
<span class="notfound-404">404</span>
|
<span class="notfound-@Model.ErrorCode">@Model.ErrorCode</span>
|
||||||
<h1>
|
<h1>
|
||||||
<strong>"@Model.DocumentName"</strong> not found in <strong>@Model.ProjectName</strong> documents, with <strong>@Model.Version</strong> version and <strong>@Model.LanguageCode</strong> language.
|
@Model.ErrorMessage
|
||||||
</h1>
|
</h1>
|
||||||
<br />
|
<br/>
|
||||||
<a href="@(Model.DocumentsUrlPrefix + Model.LanguageCode + "/" +Model.ProjectName + "/" + Model.Version)" class="btn btn-primary px-4">
|
@if (Model.AutoRedirect)
|
||||||
Go Back
|
{
|
||||||
|
<a href="@(Model.RedirectUrl)" class="btn btn-primary px-4" id="ErrorRedirect">
|
||||||
|
Go Back <span id="ErrorRedirectSeconds">(3)</span>
|
||||||
</a>
|
</a>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in new issue