diff --git a/src/main/java/com/erudika/scoold/controllers/QuestionsController.java b/src/main/java/com/erudika/scoold/controllers/QuestionsController.java index d465634b..b42a8934 100755 --- a/src/main/java/com/erudika/scoold/controllers/QuestionsController.java +++ b/src/main/java/com/erudika/scoold/controllers/QuestionsController.java @@ -158,12 +158,11 @@ public void getSimilarAjax(@PathVariable String like, HttpServletRequest req, Ht } @GetMapping({"/questions/favtags", "/questions/local"}) - public String getSorted(@PathVariable(required = false) String filter, - @RequestParam(required = false) String sortby, HttpServletRequest req, Model model) { + public String getSorted(@RequestParam(required = false) String sortby, HttpServletRequest req, Model model) { if (!utils.isDefaultSpacePublic() && !utils.isAuthenticated(req)) { return "redirect:" + SIGNINLINK + "?returnto=" + req.getRequestURI(); } - getQuestions(sortby, filter, req, model); + getQuestions(sortby, req.getServletPath().endsWith("/favtags") ? "favtags" : "local", req, model); model.addAttribute("path", "questions.vm"); model.addAttribute("title", utils.getLang(req).get("questions.title")); model.addAttribute("questionsSelected", "navbtn-hover");