Skip to content

Commit

Permalink
docs: fix embedded demo link
Browse files Browse the repository at this point in the history
  • Loading branch information
Topener committed Sep 12, 2024
1 parent 3d1c899 commit b29abe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/components/DemoComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const Demo = ({ path, args, height }) => {
window.open(fullDemoUrl, '_blank', 'noopener,noreferrer')
}

const iframeSrc = `${DEMO_URL}/iframe.html?path=${encodeURIComponent(
const iframeSrc = `${DEMO_URL}/iframe.html?path=/story/${encodeURIComponent(
formatPath(path)
)}&full=1&shortcuts=false&singleStory=true${
args ? `&args=${encodeURIComponent(args)}` : ''
Expand Down

0 comments on commit b29abe8

Please sign in to comment.