I have a Vaadin app that is primarily in Flow and requires login. However, it has one public Hilla page that should be accessible without logging in. I had to make a custom routes.tsx
to configure the Hilla route outside the Flow main layout, here’s what I have:
export const {router, routes} = new RouterConfigurationBuilder()
.withReactRoutes([
{
path: '/a/:token',
element: <SurveyAnswer/>
}
])
.withFallback(Flow)
.protect()
.build();
In the view, I have:
export const config: ViewConfig = {
loginRequired: false
}
Yet, navigating to the view requires login. How do I allow anonymous users to access the view?