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 d6fe9be..7ae92e5 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 @@ -12,8 +12,13 @@ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ + + /** + * Modified for custom myProfile URL + */ --%> +<%@page import="org.gcube.common.portal.GCubePortalConstants"%> @@ -130,10 +135,9 @@ 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"; + PortalContext context = PortalContext.getConfiguration(); + String mySiteURL = context.getSiteLandingPagePath(request); + String myProfileURL = mySiteURL + GCubePortalConstants.USER_PROFILE_FRIENDLY_URL; %>