From d41683ee2a460fb2627fbd298e6b799a5d946d62 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Thu, 14 Jul 2016 10:17:26 +0000 Subject: [PATCH] redirects to the current Site friendly URL now git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/liferay62-plugins/social-dockbar-hook@130351 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../portlet/dockbar/custom_dockbar_view.jspf | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/main/webapp/custom_jsps/html/portlet/dockbar/custom_dockbar_view.jspf b/src/main/webapp/custom_jsps/html/portlet/dockbar/custom_dockbar_view.jspf index 7eea778..28f98be 100644 --- a/src/main/webapp/custom_jsps/html/portlet/dockbar/custom_dockbar_view.jspf +++ b/src/main/webapp/custom_jsps/html/portlet/dockbar/custom_dockbar_view.jspf @@ -1,12 +1,10 @@ <%@ page import="org.gcube.common.portal.GCubePortalConstants" %> - +<%@ page import="org.gcube.common.portal.PortalContext" %> <% - //themeDisplay.getUser().getScreenName(); - String currentVirtualHost = request.getServerName(); - String groupName = currentVirtualHost.split("\\.")[0]; - - String mySiteURL = GCubePortalConstants.PREFIX_GROUP_URL + "/" + groupName; + PortalContext context = PortalContext.getConfiguration(); + String groupName = context.getGatewayName(request); + String mySiteURL = context.getSiteLandingPagePath(request); %>