Block Editor: Add <base> to Block Canvas Iframe head #56533
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows relative paths to work inside a Block Canvas IFrame.
What?
Adding
<base>
with the current location to the blob used as a source for the Block Canvas Iframe.Why?
In WordPress that's not an issue but on other projects using the Block Editor component it might be. It is an issue at Drupal Gutenberg.
How?
By adding
<base>
with current location, all urls will consider the url from that tag.Testing Instructions
Not really an issue on WordPress but it can been seen at Drupal Gutenberg 3.0.0 Beta.
Testing Instructions for Keyboard
Screenshots or screencast