Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

bugfix for surftipps votes (wrong page)

orbiter7c0e6de36685
diff --git a/htroot/Surftipps.html b/htroot/Surftipps.html
index 279592dec..77c964b35 100644
--- a/htroot/Surftipps.html
+++ b/htroot/Surftipps.html
@@ -4,7 +4,7 @@
<title>YaCy '#[clientname]#': Surftipps</title>
#%env/templates/metas.template%#
</head>
- <body id="index" onload="document.getElementById('search').focus()">
+ <body>
#(display)#
#%env/templates/simpleheader.template%#
::
diff --git a/htroot/Surftipps.java b/htroot/Surftipps.java
index 8fc848b38..4418e6d37 100644
--- a/htroot/Surftipps.java
+++ b/htroot/Surftipps.java
@@ -134,8 +134,8 @@ public class Surftipps {
e.printStackTrace();
}
prop.put("surftipps_results_" + i + "_recommend", (voted) ? 0 : 1);
- prop.put("surftipps_results_" + i + "_recommend_negativeVoteLink", "/index.html?voteNegative=" + urlhash + "&refid=" + refid + "&display=" + display); // for negaive votes, we don't send around the bad url again, the hash is enough
- prop.put("surftipps_results_" + i + "_recommend_positiveVoteLink", "/index.html?votePositive=" + urlhash + "&refid=" + refid + "&url=" + crypt.simpleEncode(url,null,'b') + "&title=" + crypt.simpleEncode(title,null,'b') + "&description=" + crypt.simpleEncode(description,null,'b') + "&display=" + display);
+ prop.put("surftipps_results_" + i + "_recommend_negativeVoteLink", "/Surftipps.html?voteNegative=" + urlhash + "&refid=" + refid + "&display=" + display); // for negaive votes, we don't send around the bad url again, the hash is enough
+ prop.put("surftipps_results_" + i + "_recommend_positiveVoteLink", "/Surftipps.html?votePositive=" + urlhash + "&refid=" + refid + "&url=" + crypt.simpleEncode(url,null,'b') + "&title=" + crypt.simpleEncode(title,null,'b') + "&description=" + crypt.simpleEncode(description,null,'b') + "&display=" + display);
prop.put("surftipps_results_" + i + "_url", url);
prop.put("surftipps_results_" + i + "_urlname", nxTools.shortenURLString(url, 60));
prop.put("surftipps_results_" + i + "_urlhash", urlhash);