hilla
hilla copied to clipboard
(Vaadin 15) Currently no option to redirect Edge/IE users to custom page
Original Forum Post: https://vaadin.com/forum/thread/18201160/vaadin-15-how-to-redirect-edge-old-browser-users
With Vaadin 15+ the old Edge Browser is no longer supported. When entering, a standard website is shown, which says that the browser is not supported. On this website the user can decide to visit anyways. When the user clicks this an endless loading indicator + white page is shown
.
In Vaadin 14 I simply redirected to a static webpage. Sadly this is not working anymore. Here is the old code working in Vaadin 14:
@Override
public void beforeEnter(BeforeEnterEvent beforeEnterEvent) {
ui = beforeEnterEvent.getUI();
if (ui.getSession().getBrowser().isIE() || ui.getSession().getBrowser().isEdge()) {
LOG.debug("edge / ie browser not supported redirect");
Redirect.redirectTo("/browser-notsupported.html");
}
}
Is there a way i can do something similar in Vaadin 15? Is there maybe also a way to directly show my custom not supported page and not show the vaadin integrated warning page at all?