mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 10:20:41 +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
|
||||
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()
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user