Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Corné Strijkert 80 posts 456 karma points c-trib
    Dec 16, 2015 @ 11:07
    Corné Strijkert
    0

    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.

    What should i do to fix this?

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Dec 17, 2015 @ 09:25
    Marc Goodson
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft