diff options
-rw-r--r-- | src/java/com/juick/http/www/Discover.java | 8 |
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 fec0c117c..08930e27a 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); |