bank: strip :443 from taler://withdraw URIs for wallet apps.

libeufin includes default HTTPS port; demo/auto-account APIs, refresh
scripts, and landing JS now normalize hosts without :443. ensure-taler-apps
also starts merchant ui-unlock after reboot.
This commit is contained in:
Hernâni Marques 2026-07-17 01:07:22 +02:00
parent 360fb363de
commit 196ba7aba9
5 changed files with 56 additions and 11 deletions

View file

@ -1597,8 +1597,10 @@ tw run-until-done &amp;&amp; tw balance</pre>
}
function setDemoWithdraw(uri, amount) {
/* Keep host:port (…:443) — required for taler-integration withdraw */
uri = String(uri || "").trim();
/* Strip default :443 — libeufin adds it; wallets prefer host without port */
uri = String(uri || "")
.trim()
.replace(/(taler:\/\/withdraw\/[^/:]+):443(?=\/|$)/g, "$1");
var open = document.getElementById("open-withdraw-demo");
var meta = document.getElementById("withdraw-demo-meta");
if (open) {