diff --git a/common/src/main/java/com/genexus/URLRouter.java b/common/src/main/java/com/genexus/URLRouter.java index 485cf58f0..6b9d83af0 100644 --- a/common/src/main/java/com/genexus/URLRouter.java +++ b/common/src/main/java/com/genexus/URLRouter.java @@ -41,10 +41,16 @@ public static String getURLRoute(boolean useNamedParameters, String key, String[ String lowURL = CommonUtil.lower(key); - if ((!packageName.equals("") && !lowURL.startsWith(packageName)) || (packageName.equals("") && !lowURL.equals(key))) + if ((!packageName.equals("") && !lowURL.startsWith(packageName)) || (packageName.equals("") && !lowURL.equals(key)) || lowURL.startsWith(packageName)) { if (!packageName.equals("")) packageName += "."; + + if (lowURL.startsWith(packageName)) + { + lowURL = lowURL.substring(packageName.length()); + } + try { SpecificImplementation.Application.getConfigurationClass().getClassLoader().loadClass(packageName + lowURL);