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 77 posts 433 karma points
    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 1451 posts 9716 karma points MVP 5x 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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies