alt template url does not work when using 404 content finder
Hi all,
I want to write
/sitemap?altTemplate=xmlsitemap
as follow:
/sitemap/xmlsitemap
But, i have also writed a custom 404 content finder. When i enable this content finder the '/sitemap/xmlsitemap' does not work, but when i disable the custom content finder it's ok.
if you've added it to the list of ContentFinderResolvers, have you added it 'above' the IContentFinder that looks for alternative templates ? ie your custom 404 finder is firing before the alt template one ?
alt template url does not work when using 404 content finder
Hi all,
I want to write
as follow:
But, i have also writed a custom 404 content finder. When i enable this content finder the '/sitemap/xmlsitemap' does not work, but when i disable the custom content finder it's ok.
What should i do to fix this?
Hi Corné
How are you registering your custom 404 finder ?
is it registered as a 'ContentLastChanceFinder' ?
or
are you adding it as a ContentFinderResolver ?
https://our.umbraco.org/documentation/Reference/Routing/Request-Pipeline/IContentFinder
if you've added it to the list of ContentFinderResolvers, have you added it 'above' the IContentFinder that looks for alternative templates ? ie your custom 404 finder is firing before the alt template one ?
regards
Marc
is working on a reply...