-
Notifications
You must be signed in to change notification settings - Fork 70
Blank Login View after navigating from @AnonymousAllowed to @PermitAll view #7296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It looks like the problem is that Lines 78 to 83 in 63fa89e
I don't know whether this is a regression or the expected behavior, so I'll transfer the issue to flow-components repository for further investigation. |
Thank you for looking into it. That code snippet indeed looks like the culprit of my issue. |
Not 100% sure if it works, but as a work-around you can try to add the overlay explicitly to the
|
Yes that actually works! Thanks for finding that workaround. In the meantime I have found in this commit that the LoginOverlay already had similar code within LoginOverlay::ensureAttached before the unified OverlayAutoAddController was used, but there it was only executed when |
Description of the bug
whenever I navigate programmatically from a
@AnonymousAllowed
view to a@PermitAll
view (while not being authenticated yet), it redirects to the login view but it is completely blank (white, no content in the body except the outlet and the connection-indicator).Meanwhile, when I navigate from a
@AnonymousAllowed
to a@PermitAll
view by typing the url manually, the login view works fine and shows the login form. This difference makes me think the bug lies somewhere inUI::navigate
maybe?I can see a similar issue here vaadin/flow#20939 but for me there is no errors being shown, neither in server log nor in browser console.
This is how the LoginView HTML looks when the bug is happening:

And this is how the LoginView HTML looks when it works properly:

Expected behavior
The Login Form/Overlay should appear instead of a blank screen
Minimal reproducible example
Here are some views and configs that represent my setup:
Versions
The text was updated successfully, but these errors were encountered: