Same View in different Layouts

I have one View in different Layouts, all with there own unique @RoutePrefix.

@Route(value = “a”, layout = Foo.class)
@RouteAlias(value = “a”, layout = Bar.class)
@RouteAlias(value = “a”, layout = Test.class)
public class AView {}

All layouts have there own menubar. When i click on the RouterLink in the menu of layout B or Test, I will be redirected to layout Foo. Is there a possibility to stay in the layout i am currently in, when it is part of the RouteAlias?
The only solution I found was this but I’d prefer a more concise way if possible.