From aa29c8afae0533bd1b1bf04a386e8fc3f6069b37 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 3 Dec 2024 23:57:30 +0100 Subject: [PATCH] Fix subscribe deeplink A colon inside the protocol is not a valid url. The website tried to open `antennapod-subscribe://https://abc` but ended up opening `antennapod-subscribe://https//abc`, which caused an error. Now the website strips the http(s) and gives `antennapod-subscribe://abc` and the app adds the protocol. --- deeplink/subscribe/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deeplink/subscribe/index.html b/deeplink/subscribe/index.html index ddf947c5..d6223053 100644 --- a/deeplink/subscribe/index.html +++ b/deeplink/subscribe/index.html @@ -41,7 +41,7 @@

{% t generic.subscribe %}

const url = urlParams.get("url"); urlTextBox.textContent = url; subscribeButton.onclick = () => { - window.open("antennapod-subscribe://" + url); + window.open("antennapod-subscribe://" + url.replace(/^https?:\/\//g, '')); }; }