An open transaction page keeps the old "Show in …" links after the third-party transaction URL setting is changed or cleared #1136

Open
opened 2026-11-13 17:12:26 +00:00 by jarolrod · 1 comment
jarolrod commented 2026-11-13 17:12:26 +00:00 (Migrated from github.com)

A transaction page that is already open in Activity keeps the "Show in " entries it built when it was opened. After the third-party transaction URL setting is changed or cleared, its menu still offers the old site, and choosing it puts the old address with the transaction ID into the confirmation popup.

To reproduce:

  1. In Settings → Display, set Third-party transaction URLs to https://one.example/tx/%s.
  2. In Activity, open a transaction. Its … menu has "Show in one.example".
  3. Without pressing Back on that page, go to Settings → Display and change the value to https://two.example/tx/%s, or clear it.
  4. Return to Activity. The same page is still shown. Open its menu.

The menu still has "Show in one.example", and choosing it opens the confirmation popup with https://one.example/tx/<txid>. The stored setting is already the new value, or empty.

Case Result
Setting changed, page left open old host offered, 4 of 4
Setting cleared, page left open old host offered, 4 of 4
Back, then the same transaction opened again new host, or no entry, 10 of 10
Setting changed with no transaction page open correct, 2 of 2
Setting empty when the page was opened, then filled in the open page has no entry until Back and reopening (one launch)

The stale entry survived other tabs, a new block, a new incoming payment and a switch to another wallet and back (one launch). Only Back and reopening, or a restart, cleared it.

The menu's entries come from an invokable call inside a binding, which is evaluated again only when the transaction ID changes:

github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/pages/wallet/TransactionDetail.qml (L89-L98)

thirdPartyTransactionLinks() has no change signal the binding can follow, and the page is kept alive on the wallet's Activity stack. Referring to optionsModel.thirdPartyTransactionUrls in the binding, or making the links a property with that notifier, would let the menu update. #1052 at e89a2bcd4624 moves this menu into TransactionActionsMenu.qml with the same one-time call, by its diff, and also uses that component for the Activity row menu.

The impact is low. Nothing is opened without the confirmation popup, which shows the full address. The effect is that a site just removed from the setting is still offered on the page the user returns to. Bitcoin-Qt, by its source, keeps its entries until a restart and says a restart is needed. The setting came with #598.

Reproduced on qt6 at 2bd5a61e8304 and eed1f426fcb6, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen only. Clicks went through the test bridge. It cannot type %, Tab or Return, so %s was written into the field directly and the edit was committed by moving the focus away programmatically. I only ever cancelled the confirmation popup.

A transaction page that is already open in Activity keeps the "Show in <host>" entries it built when it was opened. After the third-party transaction URL setting is changed or cleared, its menu still offers the old site, and choosing it puts the old address with the transaction ID into the confirmation popup. To reproduce: 1. In **Settings → Display**, set **Third-party transaction URLs** to `https://one.example/tx/%s`. 2. In **Activity**, open a transaction. Its **…** menu has "Show in one.example". 3. Without pressing Back on that page, go to **Settings → Display** and change the value to `https://two.example/tx/%s`, or clear it. 4. Return to **Activity**. The same page is still shown. Open its menu. The menu still has "Show in one.example", and choosing it opens the confirmation popup with `https://one.example/tx/<txid>`. The stored setting is already the new value, or empty. | Case | Result | |---|---| | Setting changed, page left open | old host offered, 4 of 4 | | Setting cleared, page left open | old host offered, 4 of 4 | | Back, then the same transaction opened again | new host, or no entry, 10 of 10 | | Setting changed with no transaction page open | correct, 2 of 2 | | Setting empty when the page was opened, then filled in | the open page has no entry until Back and reopening (one launch) | The stale entry survived other tabs, a new block, a new incoming payment and a switch to another wallet and back (one launch). Only Back and reopening, or a restart, cleared it. The menu's entries come from an invokable call inside a binding, which is evaluated again only when the transaction ID changes: https://github.com/bitcoin-core/gui-qml/blob/2bd5a61e8304d5143e32f1ce977a2de2aceb6413/qml/pages/wallet/TransactionDetail.qml#L89-L98 `thirdPartyTransactionLinks()` has no change signal the binding can follow, and the page is kept alive on the wallet's Activity stack. Referring to `optionsModel.thirdPartyTransactionUrls` in the binding, or making the links a property with that notifier, would let the menu update. #1052 at `e89a2bcd4624` moves this menu into `TransactionActionsMenu.qml` with the same one-time call, by its diff, and also uses that component for the Activity row menu. The impact is low. Nothing is opened without the confirmation popup, which shows the full address. The effect is that a site just removed from the setting is still offered on the page the user returns to. Bitcoin-Qt, by its source, keeps its entries until a restart and says a restart is needed. The setting came with #598. Reproduced on `qt6` at `2bd5a61e8304` and `eed1f426fcb6`, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen only. Clicks went through the test bridge. It cannot type `%`, Tab or Return, so `%s` was written into the field directly and the edit was committed by moving the focus away programmatically. I only ever cancelled the confirmation popup.
jarolrod commented 2026-11-14 12:30:09 +00:00 (Migrated from github.com)

#1052 is now merged, and the Activity row menu has the same problem. After the setting is changed, reopening the row menu on the same transaction still offers "Show in one.example", with the old address in the confirmation, while another row offers the new host. After the setting is cleared, the same row still offered the previous host. The binding is now in the shared menu:

github.com/bitcoin-core/gui-qml@efc4a2c754/qml/components/TransactionActionsMenu.qml (L21)

On efc4a2c754eb the transaction page still keeps the old entry too (3 of 3). One launch for the row menu, offscreen; the menu was opened through the test bridge, which cannot right-click.

#1052 is now merged, and the Activity row menu has the same problem. After the setting is changed, reopening the row menu on the same transaction still offers "Show in one.example", with the old address in the confirmation, while another row offers the new host. After the setting is cleared, the same row still offered the previous host. The binding is now in the shared menu: https://github.com/bitcoin-core/gui-qml/blob/efc4a2c754eb74b1d370e4bf2313ed8d22988a36/qml/components/TransactionActionsMenu.qml#L21 On `efc4a2c754eb` the transaction page still keeps the old entry too (3 of 3). One launch for the row menu, offscreen; the menu was opened through the test bridge, which cannot right-click.
Sign in to join this conversation.
No description provided.