diff --git a/lnbits/static/js/components/lnbits-qrcode-lnurl.js b/lnbits/static/js/components/lnbits-qrcode-lnurl.js index 2441eb77f..14d014f7d 100644 --- a/lnbits/static/js/components/lnbits-qrcode-lnurl.js +++ b/lnbits/static/js/components/lnbits-qrcode-lnurl.js @@ -21,7 +21,10 @@ 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 = `${new URL(this.url).origin}/?lightning=${bech32.toUpperCase()}` + this.lnurl = + this.prefix == 'lnurlw' + ? `${new URL(this.url).origin}/?lightning=${bech32.toUpperCase()}` + : `lightning:${bech32.toUpperCase()}` } else if (this.tab == 'lud17') { if (this.url.startsWith('http://')) { this.lnurl = this.url.replace('http://', this.prefix + '://')