From bc982727e7383b1773d5b4376685871b727b5eec Mon Sep 17 00:00:00 2001 From: Christos KK Loverdos Date: Mon, 10 Jun 2013 16:12:04 +0300 Subject: [PATCH] Server will send the full URL in X-Object-Public So there is no need to concatenate stuff. Refs #3965 --- src/gr/grnet/pithos/web/client/FileShareDialog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gr/grnet/pithos/web/client/FileShareDialog.java b/src/gr/grnet/pithos/web/client/FileShareDialog.java index c314801..eea2c02 100644 --- a/src/gr/grnet/pithos/web/client/FileShareDialog.java +++ b/src/gr/grnet/pithos/web/client/FileShareDialog.java @@ -118,7 +118,7 @@ public class FileShareDialog extends AbstractPropertiesDialog { private final HorizontalPanel privatePathPanel = new HorizontalPanel(); private final TextBox privatePathText = new TextBox(); private PermissionsList permList; - + public interface PrivateSharingImages extends MessagePanel.Images { @Source("gr/grnet/pithos/resources/edit_user.png") @@ -234,7 +234,7 @@ public class FileShareDialog extends AbstractPropertiesDialog { Pithos.preventIESelection(); } }); - publicPathText.setText(Window.Location.getHost() + file.getPublicUri()); + publicPathText.setText(file.getPublicUri()); publicPathText.setTitle("Use this link for sharing the file via e-mail, IM, etc. (crtl-C/cmd-C to copy to system clipboard)"); publicPathText.setReadOnly(true); publicPathPanel.add(publicPathText); -- 1.7.10.4