The "Copy Canvas Link" leaves out the base url and only gives the iframe information making it useless
See original GitHub issueDescribe 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!
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
I haven’t seen any activity for a while, so I made a pull request. I am new to contributing, so please let me know if there is anything I missed.
Sounds good! Thank you. In the meantime, can this be assigned to me?