Copied to clipboard

Flag this post as spam?

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


  • Martin Griffiths 826 posts 1269 karma points c-trib
    Apr 26, 2022 @ 17:20
    Martin Griffiths
    0

    404 in Umbraco 9 - custom page not working for doctypes without template

    I've been scratching my head over this one, I have three types of general urls in my project...

    1. Published doctypes with a template
    2. Published doctypes without a template (404 not found)
    3. A spurious url that doesn't lead to any doctype/published url (404 not found)

    The problem I have is after following the default 404 page to the docs for configuring your own custom 404. The custom page only works for 3 and NOT 2. 2 continues to display the default 404 page! Uggh!

    I've tried a custom Content Finder and that overrides the appsettings entries but I still get the default 404 page for 2.

    How do I fix this and get a custom 404 for pages without a template?

    Just using Kestrel, dotnet run build

  • Patrick de Mooij 72 posts 622 karma points MVP 3x c-trib
    Apr 28, 2022 @ 09:06
    Patrick de Mooij
    100

    Has been reported as an issue on Github as well: https://github.com/umbraco/Umbraco-CMS/issues/12230. No solution yet as far as I can see

  • Martin Griffiths 826 posts 1269 karma points c-trib
    Apr 28, 2022 @ 09:50
    Martin Griffiths
    0

    Yup, that'll be it! Many thanks for the heads up. I'll await the (pretty fundamental) fix.

Please Sign in or register to post replies

Write your reply to:

Draft