diff --git a/src/main/webapp/WEB-INF/liferay-plugin-package.properties b/src/main/webapp/WEB-INF/liferay-plugin-package.properties index 5fdd6b2..46d6d5f 100644 --- a/src/main/webapp/WEB-INF/liferay-plugin-package.properties +++ b/src/main/webapp/WEB-INF/liferay-plugin-package.properties @@ -1,6 +1,6 @@ name=d4science-responsive-theme module-group-id=liferay -module-incremental-version=3 +module-incremental-version=5 tags= short-description= change-log= diff --git a/src/main/webapp/js/gcube-context.js b/src/main/webapp/js/gcube-context.js index cca493d..f3d7d1d 100644 --- a/src/main/webapp/js/gcube-context.js +++ b/src/main/webapp/js/gcube-context.js @@ -11,7 +11,7 @@ function injectClientContext() { if (Liferay.ThemeDisplay.isSignedIn()) { userId = Liferay.ThemeDisplay.getUserId(); groupId = Liferay.ThemeDisplay.getScopeGroupId(); - console.log("D4S groupId is = " + groupId); + console.log("groupid is = " + groupId); } else { groupId = Liferay.ThemeDisplay.getScopeGroupId(); @@ -22,6 +22,7 @@ function injectClientContext() { var newSend = function(vData) { this.setRequestHeader("gcube-userId", userId); this.setRequestHeader("gcube-vreid", groupId); + this.setRequestHeader("gcube-request-url", location.href); this.realSend(vData); }; XMLHttpRequest.prototype.send = newSend;