Details
Description
The IncludeNotFound event handler claims in the log "Can't find include not found
page: " even though the "notfound" page exists.
I've tracked this in the source:
------------------------------------------------
boolean exists = (rs.getLoaderNameForResource(includeResourcePath) != null);
if (!exists)
{
if (rs.getLoaderNameForResource(notfound) == null)
else
{ /** * can't find not found, so display nothing */ rs.getLog().error("Can't find include not found page: " + notfound); return null; } }
else
return includeResourcePath;
---------------------------------------------------
I think the condition:
if (rs.getLoaderNameForResource(notfound) == null)
should read:
if (rs.getLoaderNameForResource(notfound) != null)
Changing this fixed the problem for me.