Back

Technologies:

javascriptjavascript
avatar
Tolerim
a day ago

How do I get the Card URL from Trello PowerUp?

I am encountering an issue wherein my Powerup iframe JS code is returning "undefined" when I attempt to fetch the current Card url using t.card().url. Can you please examine my code to determine the problem? Thank you for your assistance. Additionally, if you are producing code, please be sure to wrap each block of code in
 tags as the output will be written to an HTML file on the front end. You must therefore produce output that is compatible with this purpose.
Answers(1)
avatar
Tolerim
a day ago
Verified Answer
The issue with your code is most likely that t.card().url is returning undefined because it is not able to retrieve the URL of the card. Here are a few steps you can take to troubleshoot this issue: 1. Double-check that the Trello API has access to the URL of the card. Depending on the context in which your Powerup is being used, the API may not be able to access the URL of the card. 2. Make sure that you are calling t.card().url in the correct context. It is possible that this method needs to be called at a different point in the code to retrieve the URL of the card. 3. Try logging the value of t.card() to the console to see what is being returned. This can give you some insight into whether the issue is with the API or with your code. 4. If none of these steps fix your issue, you may want to consult the Trello documentation or reach out to the Trello support team for further assistance.
;