question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The "Copy Canvas Link" leaves out the base url and only gives the iframe information making it useless

See original GitHub issue

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): image

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:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
soso-15315commented, Feb 13, 2022

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.

1reaction
nishit-prasadcommented, Jul 8, 2021

Sounds good! Thank you. In the meantime, can this be assigned to me?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Embedding an Uploaded HTML page in an iFrame
Cons & Complications to embedding an html document in an iframe. Any content that originates from a url that begins with http instead...
Read more >
base url inside an iframe is not working correctly
My problem is, relative paths inside that iframe is using http://localhost:3000 instead of http://localhost:8000 even if I have a base tag ...
Read more >
The ultimate guide to iframes - LogRocket Blog
Not a fan of iframes? This post provides an overview of the tag's best features, shows you how to use them, and how...
Read more >
HTML 5.2: 4.7. Embedded content - W3C
To embed an image in HTML, when there is only a single image resource, ... An image request has a state , current...
Read more >
Canvas LMS REST API Documentation - Mitt UiB
A paginated list of accounts where the current user has permission to create or manage courses. List will be empty for students and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found