diff --git a/packages/learn/src/templates/Challenges/utils/frame.js b/packages/learn/src/templates/Challenges/utils/frame.js index fa1dec6c38..972bce47e8 100644 --- a/packages/learn/src/templates/Challenges/utils/frame.js +++ b/packages/learn/src/templates/Challenges/utils/frame.js @@ -13,14 +13,17 @@ const mainId = 'fcc-main-frame'; const testId = 'fcc-test-frame'; // base tag here will force relative links -// within iframe to point to '/' instead of +// within iframe to point to '' instead of // append to the current challenge url +// this also allows in-page anchors to work properly +// rather than load another instance of the learn +// // if an error occurs during initialization // the __err prop will be set // This is then picked up in client/frame-runner.js during // runTestsInTestFrame below const createHeader = (id = mainId) => ` - +