From bb13423e51100e2f23473a26b913507bcb35e48b Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Mon, 16 May 2016 14:07:45 +0000 Subject: [PATCH] added patch for myProfileURL git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/liferay62-plugins/social-dockbar-hook@128619 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../portlet/dockbar/view_user_account.portal.jspf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/custom_jsps/html/portlet/dockbar/view_user_account.portal.jspf b/src/main/webapp/custom_jsps/html/portlet/dockbar/view_user_account.portal.jspf index 5dfaa5d..d6fe9be 100644 --- a/src/main/webapp/custom_jsps/html/portlet/dockbar/view_user_account.portal.jspf +++ b/src/main/webapp/custom_jsps/html/portlet/dockbar/view_user_account.portal.jspf @@ -75,7 +75,6 @@ <% List mySiteGroups = user.getMySiteGroups(new String[] {User.class.getName()}, false, QueryUtil.ALL_POS); - for (Group mySiteGroup : mySiteGroups) { %> @@ -130,8 +129,22 @@ myAccountURL = HttpUtil.setParameter(myAccountURL, "controlPanelCategory", PortletCategoryKeys.MY); %> + <%//Patch for myProfile URL + String currentVirtualHost = request.getServerName(); + String groupName = currentVirtualHost.split("\\.")[0]; + + String myProfileURL = GCubePortalConstants.PREFIX_GROUP_URL + "/" + groupName + "/profile"; + %> +
  • + + + + +
  • + <%//End Patch for myProfile URL %> +