mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-10 03:10:44 +00:00
URL-encode spaces in share link
This commit is contained in:
parent
3f07a6d234
commit
8d6782793e
@ -99,7 +99,7 @@ public class TypeInferenceView extends VerticalLayout
|
|||||||
@Override
|
@Override
|
||||||
public void shareButton() {
|
public void shareButton() {
|
||||||
UI.getCurrent().getPage().executeJs("return decodeURI(window.location.href)").then(url ->
|
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()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user