# Card back section context doesn't update when it should

**URL:** <https://community.developer.atlassian.com/t/card-back-section-context-doesnt-update-when-it-should/96126>\
**Category:** Trello\
**Created:** [October 14, 2025, 9:06pm UTC](https://community.developer.atlassian.com/t/card-back-section-context-doesnt-update-when-it-should/96126 "2025-10-14T21:06:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DannieHansen](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@DannieHansen](https://community.developer.atlassian.com/u/DannieHansen)\
**Post date:** [October 14, 2025, 9:06pm UTC](https://community.developer.atlassian.com/t/card-back-section-context-doesnt-update-when-it-should/96126/1 "2025-10-14T21:06:28Z")

</div>

I received a user report saying that when you attach one card to another and navigate between them using those card links, the powerup I’ve developed doesn’t update its context - it still thinks it’s on the original card. As a result, all the data shown in the card back section comes from the previous card instead of the one you’ve just opened.

Am i doing something wrong? Or did i stumble upon a bug?

Reproducible code

```auto
const t = window.TrelloPowerUp.iframe({
  appKey: getAppKey(),
  appName: getAppName()
});

t.render(async () => {
  const cardId = (await t.card('id')).id;
  console.log('cardId:', cardId);
});

```

Steps to reproduce:

1. Create card A
2. Create card B
3. Attach card B onto card A
4. Clear the console
5. Open card A
6. Now, see console. Should print the card id of card A.
7. Now, click the card B attachment on card A.
8. Now, see console. Should still show the card A id and not card B.

I’ve also tried console logging the current context of the trello instance through getContext() but it also shows the wrong card when on card B.
