src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java

changeset 58
8d3047f78190
parent 57
1262b5433644
child 63
51aa5e267c7f
     1.1 --- a/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java	Sun May 17 15:24:58 2020 +0200
     1.2 +++ b/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java	Sun May 17 16:00:13 2020 +0200
     1.3 @@ -166,8 +166,10 @@
     1.4                                  || DataAccessObjects.class.isAssignableFrom(param);
     1.5                      }
     1.6                      if (paramsInjectible) {
     1.7 -                        final String requestPath = "/" + mapping.get().requestPath()
     1.8 -                                + (mapping.get().menuKey().isBlank() ? "" : "/");
     1.9 +                        String requestPath = "/" + mapping.get().requestPath();
    1.10 +                        if (!mapping.get().requestPath().isBlank() && !mapping.get().menuKey().isBlank()) {
    1.11 +                            requestPath += "/";
    1.12 +                        }
    1.13  
    1.14                          if (mappings
    1.15                                  .computeIfAbsent(mapping.get().method(), k -> new HashMap<>())

mercurial