Jmix 2.0 open view after login

Hi,

I want to open a view automatically after login.
Best would be if I could use http://localhost:8080/myView?
Which means, I can pass the view I want to open after login in the URL.
Should be the same behavior as if I click on menu item in the navigator sidebar.

I tried to use ViewNavigators, but could not figure out how to do it and where.

And now I tried:
UI.getCurrent().getPage().open(“http://localhost:8080/myView","_self”);
in the LoginView.class in the Subcribe(“login”)…
It works, but that looks a little bit rustic…
Is there a more elegant way to do it?

KR
Roland

Hi,
Perhaps this topic can be useful: Set a specific screen as a default page after login in JMIX 2.0

1 Like