Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Converted "clone" URL links in Table_API_p.html to purely relative ones.
lucciomanceb758888077
diff --git a/htroot/Table_API_p.java b/htroot/Table_API_p.javaindex 8cefb17e2..65bf78fb8 100644--- a/htroot/Table_API_p.java+++ b/htroot/Table_API_p.java@@ -296,7 +296,7 @@ public class Table_API_p {final MultiProtocolURL u = new MultiProtocolURL("http://localhost:8090" + editUrl);prop.put("showtable_list_" + count + "_isCrawlerStart", 2);prop.put("showtable_list_" + count + "_isCrawlerStart_pk", UTF8.String(row.getPK()));- prop.put("showtable_list_" + count + "_isCrawlerStart_servlet", "/CrawlStartExpert.html");+ prop.put("showtable_list_" + count + "_isCrawlerStart_servlet", "CrawlStartExpert.html");Map<String, String> attr = u.getAttributes();int ac = 0;for (Map.Entry<String, String> entry: attr.entrySet()) {@@ -308,7 +308,10 @@ public class Table_API_p {} else {// short callsprop.put("showtable_list_" + count + "_isCrawlerStart", 1);- prop.put("showtable_list_" + count + "_isCrawlerStart_url", editUrl);+ /* For better integration of YaCy peers behind a reverse proxy subfolder,+ * ensure a path relative to this servlet (with no starting slash) is used for clone links.+ * We keep the paths starting with a slash for other URL displays. */+ prop.put("showtable_list_" + count + "_isCrawlerStart_url", editUrl.startsWith("/") ? editUrl.substring(1, editUrl.length()) : editUrl);}} else {prop.put("showtable_list_" + count + "_isCrawlerStart", 0);