Custom 404 page not working

Hi. I have followed the docs on Implement Custom Error Pages | Umbraco CMS on how to setup a 404 page.

However, when I type in a bogus URL I still end up with the Umbraco default 404 page. Is this a known problem? Any suggestions on what I could do to fix this?

Edit: Umbraco 15.4.1

Cheers, Josef

Hi @henryson
What version of Umbraco are you using?

I just updated my site to version 16, and I started getting this error as well. Using Error404Collection with id.

I am using Umbraco 15.4.1 @OwainWilliams

did you do it using the configuration approach or using an IContentLastChanceFinder?

I used the configuration together with creation of a doc type and page:

"Error404Collection": [
          {
            "Culture": "default", // Also tried specific culture en-US here
            "ContentKey": "e4bc0bc5-e2b7-4fa1-8cd4-8de144635ed2"
          }
        ]

@huwred

I just tested in a clean install of 16 which is also not working, so would seem it stopped working at some point. I will try it using the content finder to see if that works

1 Like

I am trying out the content finder and it seems like it could work. The docs are a bit misguiding though so I have to make some adjustments. (The Page404 is not in the root according to instructions before).

UPDATE: I did not make this work either, I can debug into it but then it sends me to the default 404 page again.

Yes, I can confirm the same behaviour. It is probably worth raising it as a BUG on github

2 Likes

Yup, if it’s reproducible and you’ve followed the docs. Report it on the
Issue Tracker

1 Like

I have raised issue in Custom 404 page not working · Issue #19613 · umbraco/Umbraco-CMS · GitHub

2 Likes