aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/User.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-04-19 17:45:51 +0700
committerGravatar Ugnich Anton2014-04-19 17:45:51 +0700
commit7e09c7c6b5ad1a3000b7e3ddceca5da2b654df6d (patch)
treea1086c7dacd7f6f0c5dabd0b0ac1fe903d3c59f4 /src/java/com/juick/http/www/User.java
parent03896ca1b912786a16017d745d5d49c6ca1e3b94 (diff)
Tags name case redirect
Diffstat (limited to 'src/java/com/juick/http/www/User.java')
-rw-r--r--src/java/com/juick/http/www/User.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/User.java b/src/java/com/juick/http/www/User.java
index ca5c122f..b584494e 100644
--- a/src/java/com/juick/http/www/User.java
+++ b/src/java/com/juick/http/www/User.java
@@ -57,6 +57,10 @@ public class User {
if (paramTag == null) {
Errors.doGet404(sql, request, response);
return;
+ } else if (!paramTag.Name.equals(paramTagStr)) {
+ String url = "/" + user.UName + "/?tag=" + URLEncoder.encode(paramTag.Name, "UTF-8");
+ Utils.sendPermanentRedirect(response, url);
+ return;
}
}