Reputation: 644
When I click on a link in my vaadin application it gets intercepted by the router and only the components get changed, no page reload is done.
But as descripted in the vaadin docs it should only happen when you add the "router-link" HTML-Attribute. https://vaadin.com/docs/latest/routing/navigation#using-standard-links
Since when has this changed? And how can I prevent this?
My first idea was to add a click listener that stops the event bubbling and does a "window.location=". But I wonder if there is a more straightforward way to achieve this or a config option that I'm missing.
Upvotes: 1
Views: 344
Reputation: 644
As descripted by @Knoobie in https://stackoverflow.com/a/72728856/16651073
When you add the "router-ignore" attribute to an anchor. It will do a page reload on click.
Upvotes: 2