aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/juick')
-rw-r--r--src/java/com/juick/http/www/Discover.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/java/com/juick/http/www/Discover.java b/src/java/com/juick/http/www/Discover.java
index fec0c117..08930e27 100644
--- a/src/java/com/juick/http/www/Discover.java
+++ b/src/java/com/juick/http/www/Discover.java
@@ -44,7 +44,7 @@ public class Discover {
Errors.doGet404(sql, request, response);
return;
} else if (!paramTag.Name.equals(paramTagStr)) {
- String url = "/tag/" + paramTag.Name;
+ String url = "/tag/" + URLEncoder.encode(paramTag.Name, "UTF-8");
if (request.getQueryString() != null) {
url += "?" + request.getQueryString();
}
@@ -69,11 +69,7 @@ public class Discover {
response.setContentType("text/html; charset=UTF-8");
PrintWriter out = response.getWriter();
try {
- String canonical = null;
- if (!paramTag.Name.equals(paramTagStr) && paramBefore == 0) {
- canonical = "<link rel=\"canonical\" href=\"http://juick.com/tag/" + URLEncoder.encode(paramTag.Name, "UTF-8") + "\"/>";
- }
- PageTemplates.pageHead(out, title, canonical);
+ PageTemplates.pageHead(out, title, null);
if (!Utils.isMobileRequest(request)) {
PageTemplates.pageNavigation(out, visitor, null);