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 DocumentNotFoundPageModel
|
||||
@model Volo.Docs.Pages.Documents.Shared.ErrorComponent.ErrorPageModel
|
||||
@{
|
||||
}
|
||||
<div class="row position-relative vh-100" style="background: #e8e8e8;">
|
||||
<div class="center">
|
||||
<span class="notfound-404">404</span>
|
||||
<div class="center" id="DocumentErrorContainer">
|
||||
<span class="notfound-@Model.ErrorCode">@Model.ErrorCode</span>
|
||||
<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>
|
||||
<br />
|
||||
<a href="@(Model.DocumentsUrlPrefix + Model.LanguageCode + "/" +Model.ProjectName + "/" + Model.Version)" class="btn btn-primary px-4">
|
||||
Go Back
|
||||
</a>
|
||||
<br/>
|
||||
@if (Model.AutoRedirect)
|
||||
{
|
||||
<a href="@(Model.RedirectUrl)" class="btn btn-primary px-4" id="ErrorRedirect">
|
||||
Go Back <span id="ErrorRedirectSeconds">(3)</span>
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in new issue