hilla icon indicating copy to clipboard operation
hilla copied to clipboard

Add support for a RouterLink to client-side views

Open marcushellberg opened this issue 4 years ago • 1 comments

Vaadin 17.

RouterLink assumes you want to navigate to a java component. If I want to navigate to a client-side view, I need to create an Anchor and set the router-link attribute manually. It would be handy to have a new RouterLink(String href, String text) option.

marcushellberg avatar Jul 16 '20 01:07 marcushellberg

As a workaround, please use ElementFactory.createRouterLink(href, text). BTW, the router-link attribute is not necessary starting from Vaadin 15.

vlukashov avatar Aug 18 '20 11:08 vlukashov

is it still needed today?

ozhanefemeral avatar Oct 19 '23 08:10 ozhanefemeral