Closed (fixed)
Project:
Gutenberg
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2023 at 17:32 UTC
Updated:
10 Dec 2023 at 23:09 UTC
Jump to comment: Most recent
When previewing the content on tablet and phone modes, styles and images aren't being loaded.
These modes uses IFrames and it seems that links not using a full URL doesn't work.
For example, an image src with /sites/default/files/inline-images/image.jpeg won't work inside the frame but it works if set to a full url like https://mysite.dev/sites/default/files/inline-images/image.jpeg. The same goes for stylesheets.
Comments
Comment #2
marcofernandes commentedThis issue occurs because when using a blob as a source for a iframe, the browser will process relative urls based on the blob url. The workaround is to use
basein the Iframehead.This need to be addressed on core Gutenberg (Block Editor package). A pull request was made: https://github.com/WordPress/gutenberg/pull/56533
Meanwhile we'll use a patch.
Comment #6
marcofernandes commented