Skip to content

Commit

Permalink
fixed bug preventing users from applying the favorite tags and 'near …
Browse files Browse the repository at this point in the history
…me' filters
  • Loading branch information
albogdano committed Sep 14, 2023
1 parent b61706a commit 7a49aed
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 7a49aed

Please sign in to comment.