KXB.Umbraco.NotFoundHandler
1.0.1
See the version list below for details.
dotnet add package KXB.Umbraco.NotFoundHandler --version 1.0.1
NuGet\Install-Package KXB.Umbraco.NotFoundHandler -Version 1.0.1
<PackageReference Include="KXB.Umbraco.NotFoundHandler" Version="1.0.1" />
paket add KXB.Umbraco.NotFoundHandler --version 1.0.1
#r "nuget: KXB.Umbraco.NotFoundHandler, 1.0.1"
// Install KXB.Umbraco.NotFoundHandler as a Cake Addin #addin nuget:?package=KXB.Umbraco.NotFoundHandler&version=1.0.1 // Install KXB.Umbraco.NotFoundHandler as a Cake Tool #tool nuget:?package=KXB.Umbraco.NotFoundHandler&version=1.0.1
A 404 handler which allows you to spesify an Umbraco documenttype as a 404 page.
This allows us to use actual umbraco content as content for our 404 page.
Getting started:
Web.config:
- Add httpErrors existingResponse="PassThrough" to the webServer section of your webconfig.
Global.asax:
- We need to register the handler with umbraco's ContentResolver.
- Add following line to the OnApplicationStarting method in your Global.asax.cs
** ContentLastChanceFinderResolver.Current.SetFinder(new KXB.Umbraco.NotFoundHandler.NotFoundHandler()); **
To implement a custom handler it is possible to override the NotFoundHandler.TryFindContent(PublishedContentRequest contentRequest) method.
=========================================================================
This package is part a set of smaller modules that I have found useful when working with umbraco.
Other packages include:
- KXB.Umbraco.RouteHijacking
- KXB.Umbraco.Search
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- ClientDependency (>= 1.9.2)
- log4net (>= 2.0.8)
- Microsoft.AspNet.Mvc (>= 5.2.3)
- Microsoft.Owin (>= 3.0.1)
- Microsoft.Owin.Security (>= 3.0.1)
- Microsoft.Owin.Security.Cookies (>= 3.0.1)
- Microsoft.Owin.Security.OAuth (>= 3.0.1)
- Newtonsoft.Json (>= 10.0.2)
- UmbracoCms.Core (>= 7.6.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Removed config and made errorpagealias configurable front constructor