Skip to content
Discussion options

You must be logged in to vote

Hi @lorenzo-rovigatti! You're not doing anything wrong. This is how the iframe renderer currently behaves.

The {iframe} directive stores the URL exactly as you wrote it, and the theme renders it as-is (src={node.src} in myst-to-react/src/iframe.tsx). BASE_URL gets prepended to internal page links and theme assets, but not to an iframe src. It reproduces with mystmd 1.11.0 and BASE_URL=/repo myst build --html: the output still contains <iframe src="/simulations/eulero.html">, while the file itself is copied to _build/html/simulations/eulero.html, i.e. served at /repo/simulations/eulero.html on GitHub Pages. It's the same root cause as #2911, which is about site action buttons pointing at s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lorenzo-rovigatti
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants