Geta / 404handler

The popular 404 handler for EPiServer, enabling better control over your 404 page in addition to allowing redirects for old urls that no longer works.
Apache License 2.0
54 stars 51 forks source link

This is a query regarding 404handler role in a headless CMS #219

Open Anish-Peethambaran opened 3 years ago

Anish-Peethambaran commented 3 years ago

We are doing a POC on episerver headless CMS. How do we utilize 404 handler in a headless mode using content api? Is there any API provided to fetch all the redirects from 404handler which can be consumed by the front end application for redirecting/routing?

marisks commented 3 years ago

There is no API now. You have to build it yourself. You can access all redirects through https://github.com/Geta/404handler/blob/master/src/Geta.404Handler/Core/Data/IRedirectLoader.cs

Anish-Peethambaran commented 3 years ago

There is no API now. You have to build it yourself. You can access all redirects through https://github.com/Geta/404handler/blob/master/src/Geta.404Handler/Core/Data/IRedirectLoader.cs

Anish-Peethambaran commented 3 years ago

There is no API now. You have to build it yourself. You can access all redirects through https://github.com/Geta/404handler/blob/master/src/Geta.404Handler/Core/Data/IRedirectLoader.cs

Is there any sample implementation available for IRedirectLoader? I couldnt find any reference. Appreciate if you could please provide additional details on this. Thanks

marisks commented 3 years ago

You do not have to implement it. It is already implemented. You have tu use it to load redirects.