Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have this appSettings.json:
"Umbraco": { "CMS": { "Global": { "Id": "7d8ef44c-0e07-443c-8e17-5a25f6ed068c", "SanitizeTinyMce": true }, "Content": { "AllowEditInvariantFromNonDefault": true, "ContentVersionCleanupPolicy": { "EnableCleanup": true }, "Error404Collection": [ { "Culture": "default", "ContentXPath": "//PageError404" } ] } ....
And these pages:
According to the documentation on https://docs.umbraco.com/umbraco-cms/tutorials/custom-error-page it should work:
{ "Umbraco": { "CMS": { "Content": { "Error404Collection": [ { "Culture": "default", "ContentXPath": "//errorPages[@nodeName='My cool error']" } ] } } } }
But I just get the default Umbraco 404 page.
Umbraco 13.3.0.
I now se that the docs say: "The current implementation of XPath is suboptimal, marked as obsolete, and scheduled for removal in Umbraco 14. The replacement for ContentXPath is IContentLastChanceFinder."
I will wait for v14 and use id or key for now.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
404 page with ContentXPath does not work
I have this appSettings.json:
And these pages:
According to the documentation on https://docs.umbraco.com/umbraco-cms/tutorials/custom-error-page it should work:
But I just get the default Umbraco 404 page.
Umbraco 13.3.0.
I now se that the docs say: "The current implementation of XPath is suboptimal, marked as obsolete, and scheduled for removal in Umbraco 14. The replacement for ContentXPath is IContentLastChanceFinder."
I will wait for v14 and use id or key for now.
is working on a reply...