From 8d6782793e8d18c4a06f25560cefc4f2ff6e8666 Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Mon, 8 Mar 2021 11:04:30 +0100 Subject: [PATCH] URL-encode spaces in share link --- .../view/content/typeinferencecontent/TypeInferenceView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/kit/typicalc/view/content/typeinferencecontent/TypeInferenceView.java b/src/main/java/edu/kit/typicalc/view/content/typeinferencecontent/TypeInferenceView.java index 51804d8..ff1226e 100644 --- a/src/main/java/edu/kit/typicalc/view/content/typeinferencecontent/TypeInferenceView.java +++ b/src/main/java/edu/kit/typicalc/view/content/typeinferencecontent/TypeInferenceView.java @@ -99,7 +99,7 @@ public class TypeInferenceView extends VerticalLayout @Override public void shareButton() { UI.getCurrent().getPage().executeJs("return decodeURI(window.location.href)").then(url -> - new ShareDialog(url.asString(), lc.getTree()).open() + new ShareDialog(url.asString().replace(" ", "%20"), lc.getTree()).open() ); }