Skip to content

Commit a4265eb

Browse files
authored
When link method is called with a variable value of a KB object in UpperCase return value must be in lowercase (#864)
Issue: 108537
1 parent b275158 commit a4265eb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

common/src/main/java/com/genexus/URLRouter.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,16 @@ public static String getURLRoute(boolean useNamedParameters, String key, String[
4141

4242
String lowURL = CommonUtil.lower(key);
4343

44-
if ((!packageName.equals("") && !lowURL.startsWith(packageName)) || (packageName.equals("") && !lowURL.equals(key)))
44+
if ((!packageName.equals("") && !lowURL.startsWith(packageName)) || (packageName.equals("") && !lowURL.equals(key)) || lowURL.startsWith(packageName))
4545
{
4646
if (!packageName.equals(""))
4747
packageName += ".";
48+
49+
if (lowURL.startsWith(packageName))
50+
{
51+
lowURL = lowURL.substring(packageName.length());
52+
}
53+
4854
try
4955
{
5056
SpecificImplementation.Application.getConfigurationClass().getClassLoader().loadClass(packageName + lowURL);

0 commit comments

Comments
 (0)