Skip to content

Commit

Permalink
Add base to Iframe head
Browse files Browse the repository at this point in the history
This allows relative urls to be used in <link>, <a>, <img>, etc.
  • Loading branch information
vonloxx authored Nov 26, 2023
1 parent 4a244f6 commit 27ca317
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/components/iframe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ function Iframe( {
<html>
<head>
<meta charset="utf-8">
<base href="${ window.location.origin }">
<script>window.frameElement._load()</script>
<style>html{height:auto!important;min-height:100%;}body{margin:0}</style>
${ styles }
Expand Down

0 comments on commit 27ca317

Please sign in to comment.