Redirect from servlet web filter to Vaadin

Hello, i have question about redirecting request from servlet filter to vaadin apps.
I have web filter that validate session. If the session is invalid, it will redirect to login page which is vaadin page using this: httpServletResponse.sendRedirect(redirectUri). The redirection is success, but i have error message: Invalid JSON response from server:
I am using vaadin 14.1.25
is there something i can do to fix this?