Fixed incorrect shared link
[pithos-web-client] / src / gr / grnet / pithos / web / client / FilePermissionsDialog.java
index a982390..d4a9a82 100644 (file)
@@ -259,7 +259,9 @@ public class FilePermissionsDialog extends AbstractPropertiesDialog {
                        }\r
                        else {\r
                                b.setPath(app.getApiPath() + file.getOwner() + file.getUri());\r
-                               path.setText(GWT.getModuleBaseURL() + "?goto=" + b.buildString());\r
+                               String href = Window.Location.getHref();\r
+                               boolean hasParameters = href.contains("?");\r
+                               path.setText(href + (hasParameters ? "&" : "?") + "goto=" + b.buildString());\r
                        }\r
                pathPanel.setVisible(true);\r
                }\r