mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
Special page to handle 404 errors
This commit is contained in:
parent
fe2eca4fda
commit
ef503fa907
@ -12,6 +12,14 @@ namespace BTCPayServer.Controllers
|
||||
{
|
||||
public IActionResult Handle(int? statusCode = null)
|
||||
{
|
||||
if (statusCode.HasValue)
|
||||
{
|
||||
if (statusCode.Value == 404)
|
||||
{
|
||||
var viewName = statusCode.ToString();
|
||||
return View(viewName);
|
||||
}
|
||||
}
|
||||
return View(statusCode);
|
||||
}
|
||||
}
|
||||
|
15
BTCPayServer/Views/Error/404.cshtml
Normal file
15
BTCPayServer/Views/Error/404.cshtml
Normal file
@ -0,0 +1,15 @@
|
||||
@{
|
||||
ViewData["ErrorTitle"] = "404 - Page not found";
|
||||
}
|
||||
|
||||
<p class="lead-login">
|
||||
This is like searching for person more beautiful than <a href="https://twitter.com/NicolasDorier" target="_blank">Nicolas Dorier</a>.
|
||||
<br /><br />
|
||||
<a href="https://twitter.com/NicolasDorier" target="_blank">
|
||||
<img src="~/img/errorpages/404_nicolas.jpg" alt="Nicolas Dorier beauty" title="Slowly stroke the image" />
|
||||
</a>
|
||||
<br /><br />
|
||||
It doesn't exist.
|
||||
<br /><br />
|
||||
You can always try <a href="/">navigating back to home</a>.
|
||||
</p>
|
BIN
BTCPayServer/wwwroot/img/errorpages/404_nicolas.jpg
Normal file
BIN
BTCPayServer/wwwroot/img/errorpages/404_nicolas.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue
Block a user