Card back section context doesn't update when it should

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

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.