Describe the bug
It appears the "Copy Canvas Link" on the top right side of the Canvas tab adds to the clipboard only part of the url, it only gives you the iframe part of the url but misses the main base url.
For example if I had my story on this url: http://localhost:6006/?path=/story/example-button--large
And then I clicked on the "Copy Canvas Link" on the top right (The clipboard on the furthest right):
Then when you go over to a new tab and try to copy and paste what you just "Copied" you will get: iframe.html?id=example-button--large&args=
When it should be instead http://localhost:6006/iframe.html?id=example-button--large&args=&viewMode=story
You are essentially missing the base part of the url.
I'm not sure if this is intentional or not.
Is this a bug or is this something on my end? If so is there a working solution or a wide to "hide" the "Copy Canvas Link" option on the top right?
Can you easily see this by doing create-react-app new_project and then npx sb init. You can reproduce this issue.
Thanks!
The text was updated successfully, but these errors were encountered:
@nishit-prasad Thank you for helping make Storybook better! 🙏 Please check out how to contribute in our docs and feel free to ask questions in #contributing in our Discord.
Describe the bug
It appears the "Copy Canvas Link" on the top right side of the Canvas tab adds to the clipboard only part of the url, it only gives you the iframe part of the url but misses the main base url.
For example if I had my story on this url:
http://localhost:6006/?path=/story/example-button--largeAnd then I clicked on the "Copy Canvas Link" on the top right (The clipboard on the furthest right):

Then when you go over to a new tab and try to copy and paste what you just "Copied" you will get:
iframe.html?id=example-button--large&args=When it should be instead
http://localhost:6006/iframe.html?id=example-button--large&args=&viewMode=storyYou are essentially missing the base part of the url.
I'm not sure if this is intentional or not.
Is this a bug or is this something on my end? If so is there a working solution or a wide to "hide" the "Copy Canvas Link" option on the top right?
Can you easily see this by doing
create-react-app new_projectand thennpx sb init. You can reproduce this issue.Thanks!
The text was updated successfully, but these errors were encountered: