Adds 404 NotFound page

This commit is contained in:
BinaryAlley committed 2025-01-10 19:08:37 +02:00
1 parent 291c0768a5
commit b3ed6d1bb8
17 files changed
+1386 -3

No files matched your search

@@ -12,7 +12,7 @@ namespace Lumina.Presentation.Web.Controllers;
/// Controller for home page.
/// </summary>
[Authorize]
[Route("")] // randle root path - this is needed because app.UseCultureRedirect will redirect to the correct route
[Route("")] // handle root path - this is needed because app.UseCultureRedirect will redirect to the correct route
[Route("{culture}")] // culture-specific routes
public class HomeController : Controller
{
@@ -54,4 +54,13 @@ public class HomeController : Controller
{
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
/// <summary>
/// Displays the view for errors.
/// </summary>
[HttpGet("not-found")]
public IActionResult NotFoundView()
{
return View("/Views/Shared/NotFound.cshtml");
}
}