When I execute for example deleteUser using the link ... / deleteUser / name
then return to "/ main". But it returns all the same on: / deleteUser
@RequestMapping(value = "/deleteUser", method = RequestMethod.POST) @ResponseBody public ModelAndView createAlbum(@RequestParam("name") String name) throws Exception { ... ModelAndView model = new ModelAndView("/main"); return model; } I can’t do anything to redirect to / main page after this request