From d9a57200c7209699d645d318805a53249b9d0bd0 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Wed, 8 Mar 2023 15:54:02 +0100 Subject: [PATCH] fixed bug --- src/main/java/org/gcube/portlets/user/vlabs/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/vlabs/Utils.java b/src/main/java/org/gcube/portlets/user/vlabs/Utils.java index 8cce426..fc71f93 100644 --- a/src/main/java/org/gcube/portlets/user/vlabs/Utils.java +++ b/src/main/java/org/gcube/portlets/user/vlabs/Utils.java @@ -26,6 +26,7 @@ public class Utils { String[] splits = urlContainingGroupId.split("="); long groupId = -1; try { + toReturn.setFriendlyURL(urlContainingGroupId); if (splits.length > 0) { groupId = Long.parseLong(splits[1]); GroupManager gm = new LiferayGroupManager(); @@ -39,7 +40,6 @@ public class Utils { toReturn.setFriendlyURL(GCubePortalConstants.PREFIX_GROUP_URL +GroupLocalServiceUtil.getGroup(groupId).getFriendlyURL()); } } - toReturn.setFriendlyURL(urlContainingGroupId); } catch (Exception e) { _log.error("Something is wrong in the url passed: " + urlContainingGroupId); return toReturn;