From 9303e68e8ccc3d6f21d535e40ff9ca4a7af2d371 Mon Sep 17 00:00:00 2001 From: Tiago Vasconcelos Date: Thu, 30 Apr 2026 12:48:59 +0100 Subject: [PATCH] fix: bech32 lnurl fallback --- lnbits/static/js/components/lnbits-qrcode-lnurl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/static/js/components/lnbits-qrcode-lnurl.js b/lnbits/static/js/components/lnbits-qrcode-lnurl.js index 16308a452..2441eb77f 100644 --- a/lnbits/static/js/components/lnbits-qrcode-lnurl.js +++ b/lnbits/static/js/components/lnbits-qrcode-lnurl.js @@ -21,7 +21,7 @@ window.app.component('lnbits-qrcode-lnurl', { if (this.tab == 'bech32') { const bytes = new TextEncoder().encode(this.url) const bech32 = NostrTools.nip19.encodeBytes('lnurl', bytes) - this.lnurl = `lightning:${bech32.toUpperCase()}` + this.lnurl = `${new URL(this.url).origin}/?lightning=${bech32.toUpperCase()}` } else if (this.tab == 'lud17') { if (this.url.startsWith('http://')) { this.lnurl = this.url.replace('http://', this.prefix + '://')