diff --git a/src/main/java/org/gcube/portlets/user/td/client/rstudio/RStudio.java b/src/main/java/org/gcube/portlets/user/td/client/rstudio/RStudio.java index 35c4e01..8972c0c 100644 --- a/src/main/java/org/gcube/portlets/user/td/client/rstudio/RStudio.java +++ b/src/main/java/org/gcube/portlets/user/td/client/rstudio/RStudio.java @@ -1,6 +1,8 @@ package org.gcube.portlets.user.td.client.rstudio; +import org.gcube.portal.clientcontext.client.GCubeClientContext; import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync; +import org.gcube.portlets.user.td.gwtservice.shared.Constants; import org.gcube.portlets.user.td.gwtservice.shared.exception.TDGWTSessionExpiredException; import org.gcube.portlets.user.td.gwtservice.shared.user.UserInfo; import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent; @@ -38,7 +40,9 @@ public class RStudio { Log.debug("Request: " + trId); String url = GWT.getModuleBaseURL() + "TDRStudioServlet?" - + TAB_RESOURCE_ID_PARAMETER + "=" + trId.getId(); + + TAB_RESOURCE_ID_PARAMETER + "=" + trId.getId() + "&" + + Constants.CURR_GROUP_ID + "=" + + GCubeClientContext.getCurrentContextId(); Log.debug("Server URL: " + url); Window.open(url, "RStudio", "");