From 1cc900b9b7747e8e840bc30e63a9d3aaf1d7abf3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 22 Jun 2017 22:37:14 +0300 Subject: www: fix user tag paging --- juick-www/src/main/java/com/juick/www/controllers/User.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'juick-www/src') diff --git a/juick-www/src/main/java/com/juick/www/controllers/User.java b/juick-www/src/main/java/com/juick/www/controllers/User.java index ef79a4b8..973b9153 100644 --- a/juick-www/src/main/java/com/juick/www/controllers/User.java +++ b/juick-www/src/main/java/com/juick/www/controllers/User.java @@ -25,7 +25,7 @@ import com.juick.service.UserService; import com.juick.util.UserUtils; import com.juick.www.Utils; import com.juick.www.WebApp; -import org.apache.commons.lang3.CharEncoding; +import org.apache.commons.codec.CharEncoding; import org.apache.commons.lang3.StringEscapeUtils; import org.apache.commons.lang3.StringUtils; import org.springframework.stereotype.Controller; @@ -170,6 +170,10 @@ public class User { nextpage += "&search=" + URLEncoder.encode(paramSearch, CharEncoding.UTF_8); } + if (paramTag != null) { + nextpage += "&tag=" + URLEncoder.encode(paramTag.getName(), CharEncoding.UTF_8); + } + String next = "
"; model.addAttribute("next", next); } -- cgit v1.2.3