You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a development bundle, WebComponentBootstrapHandler adds a <link>
tag to the embedding document that references document.css for all used
themes (application and parents). However, the URL is relative to the embedding
document instead of being an absolute URL to the CSS resource.
Additionally, the <link> tag is added even if the theme does not provide a
document.css file, potentially causing 404 errors at runtime.
This change ensures that the link URL is calculated based on the request and
that it only adds tags for existing CSS files.
Fixes#21120Fixes#19620
Co-authored-by: Marco Collovati <[email protected]>
Copy file name to clipboardexpand all lines: flow-tests/test-express-build/test-embedding-express-build/src/main/frontend/themes/embedded-theme/theme.json
Copy file name to clipboardexpand all lines: flow-tests/test-express-build/test-embedding-express-build/src/test/java/com/vaadin/flow/webcomponent/ApplicationThemeComponentIT.java
+6-1
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
*/
16
16
packagecom.vaadin.flow.webcomponent;
17
17
18
+
importjava.net.URI;
18
19
importjava.util.List;
19
20
20
21
importorg.junit.Assert;
@@ -222,8 +223,12 @@ public void documentCssLinkAddedToHead() {
0 commit comments