1.1 --- a/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java Sun May 17 16:28:13 2020 +0200 1.2 +++ b/src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java Sun May 17 16:38:04 2020 +0200 1.3 @@ -63,7 +63,13 @@ 1.4 1.5 public static final String SESSION_ATTR_SELECTED_PROJECT = fqn(ProjectsModule.class, "selected-project"); 1.6 1.7 - @RequestMapping(method = HttpMethod.GET, menuKey = "menu.index") 1.8 + @RequestMapping(method = HttpMethod.GET) 1.9 + public ResponseType indexRedirect(HttpServletResponse resp) throws IOException { 1.10 + resp.sendRedirect("index/"); 1.11 + return ResponseType.NONE; 1.12 + } 1.13 + 1.14 + @RequestMapping(requestPath = "index", method = HttpMethod.GET, menuKey = "menu.index") 1.15 public ResponseType index(HttpServletRequest req, DataAccessObjects dao) throws SQLException { 1.16 final var projectList = dao.getProjectDao().list(); 1.17 req.setAttribute("projects", projectList); 1.18 @@ -122,7 +128,7 @@ 1.19 1.20 dao.getProjectDao().saveOrUpdate(project); 1.21 1.22 - setRedirectLocation(req, "./projects/"); 1.23 + setRedirectLocation(req, "./projects/index/"); 1.24 setDynamicFragment(req, Constants.DYN_FRAGMENT_COMMIT_SUCCESSFUL); 1.25 LOG.debug("Successfully updated project {}", project.getName()); 1.26 } catch (NoSuchElementException | NumberFormatException | SQLException ex) {