Is it possible to configure the Layout class based on the Route

Hi

If I have two routes for example,

@Route(value="kc", layout=MainLayout.class)

and

@Route(value="wm", layout=MainLayout.class)

I would like to configure a logo on the layout page based on the route used but I cannot find a way to parameterise the layout.
Everything else on the layout is the same. Is there a way to do this?

You can implement AfterNavigationObserver in your MainLayout and check the afterNavigationEvent parameter for the current location.