Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Anish-Peethambaran opened this issue Jul 15, 2021 · 4 comments
Open

Comments

@Anish-Peethambaran
Copy link

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
Copy link
Member

marisks commented Jul 19, 2021

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
Copy link
Author

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
Copy link
Author

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
Copy link
Member

marisks commented Jul 28, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants