fix that link changes when entering empty term

This commit is contained in:
ucrhh 2021-03-05 12:48:29 +01:00
parent d4a6acbc07
commit 5285aa067e

View File

@ -95,7 +95,7 @@ public class MainViewImpl extends AppLayout
private void setTermInURL(Pair<String, Map<String, String>> lambdaTermAndAssumptions) {
String lambdaTerm = lambdaTermAndAssumptions.getLeft();
if ("".equals(lambdaTerm)) {
UI.getCurrent().getPage().getHistory().pushState(null, new Location(""));
UI.getCurrent().getPage().getHistory().pushState(null, "./");
setContent(new StartPageView());
return;
}