I have set up a 404 node in backoffice and edited Config/umbracosettings.config to make use of the node when a page is not found. All works well.
I have a Javascript file which creates URL links to certain nodes within the site. If the url created by the Javascript is not found the IIS default 404 page is rendered instead of 404 node from back office.
how can make use of the 404 node to catch 404 not found exceptions from javascript created URL links ?
Error handling within Umbraco and web.config
Dear Umbraco Team
I have set up a 404 node in backoffice and edited Config/umbracosettings.config to make use of the node when a page is not found. All works well.
I have a Javascript file which creates URL links to certain nodes within the site. If the url created by the Javascript is not found the IIS default 404 page is rendered instead of 404 node from back office.
how can make use of the 404 node to catch 404 not found exceptions from javascript created URL links ?
Thanks Dibs
Hi Dibs,
If you are using IIS 7.5+ You may find that you don't get your error pages and IIS takes over as you see.
To get Umbraco to handle your errors for 404 insert the following element before the end of the system.webServer section of the web.config.
Now the errors you configured in the umbracosettings.config should display.
Hope this helps,
/Dennis
Cheers Dennis
is working on a reply...
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.