Redirect to Default Landing Page when user clicks on logo

****I am new to Vaadin and I could really use your help!!

Requirement : Redirect to Default Landing Page when user clicks on logo

accomplished : User gets redirected to the default landing page when clicks on logo ONLY in logged in tab.

Issues : When user open new tab within the same browser and clicks on the logo , FATAL LOG OUT.

Any other approach? ?

Also what exactly setCompositionRoot(headerLayout); does ?
Please simplify the use of VaadinSession and UI scope with respect to the tabs…