Hoe to get the navigation source

Hi there,

I have a view in which I want to check something within the beforeEnterMethod. For this I need to compare the navigation source and the navigation target. The target I could get easily from the event itself. Is there an simple way to get the Navigation source (view class name).

I could write it into the Vaadin session (within before leave event) but maybe there’s a smarter way?

Thanks and regards.