diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/DialogShareableLink.java b/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/DialogShareableLink.java index 4a23ba1..0757fd6 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/DialogShareableLink.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/view/windows/DialogShareableLink.java @@ -407,7 +407,7 @@ public class DialogShareableLink extends Composite { private String getValidURL(PublicLink publicLink) { if(publicLink==null) - return "Error on getting a valid shareble link"; + return "Error on getting a valid shareable link"; return publicLink.getShortURL() != null && !publicLink.getShortURL().isEmpty() ? publicLink.getShortURL() @@ -499,11 +499,9 @@ public class DialogShareableLink extends Composite { return; } - - textPublicLink.setValue(publicLink.getCompleteURL()); -// txtShortURL.setValue(publicLink.getShortURL()); -// selectTxt(); - + String validURL = getValidURL(publicLink); + textPublicLink.setValue(validURL); + Timer t = new Timer() { @Override public void run() {