*) "Did you mean:" will only be displayed if the list of suggested URLs is not empty.

*) Removed <hr /> to make the "404 Unknown Host" error pag look like the other 404 error pages.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4298 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
low012 17 years ago
parent 408cb7a29b
commit ae6d07bdb8

@ -5,9 +5,10 @@
}
--></style>
<hr />
<p>The server <b>#[hostName]#</b> could not be found.</p>
#(showList)#::
<p>Did you mean:</p>
#(/showList)#
<ul class="tagList">#{list}#
<li><a class="hostPort" href="http://#[hostName]#:#[hostPort]##[hostPath]##[hostArgs]#">#[hostName]#</a></li>#{/list}#
</ul>

@ -1492,7 +1492,14 @@ public final class httpdProxyHandler {
hostNameCount++;
}
detailedErrorMsgMap.put("list", hostNameCount);
detailedErrorMsgMap.put("list", hostNameCount);
if (hostNameCount != 0) {
detailedErrorMsgMap.put("showList", 1);
} else {
detailedErrorMsgMap.put("showList", 0);
}
return detailedErrorMsgMap;
}

Loading…
Cancel
Save