diff --git a/recipes/instagram/package.json b/recipes/instagram/package.json index 9bdc70b35..e0449bb7c 100644 --- a/recipes/instagram/package.json +++ b/recipes/instagram/package.json @@ -1,10 +1,10 @@ { "id": "instagram", "name": "Instagram", - "version": "2.5.1", + "version": "2.5.2", "license": "MIT", "config": { - "serviceURL": "https://instagram.com/direct/inbox", + "serviceURL": "https://instagram.com/", "hasNotificationSound": true } } diff --git a/recipes/instagram/webview.js b/recipes/instagram/webview.js index 1b35c37d8..b63e68350 100644 --- a/recipes/instagram/webview.js +++ b/recipes/instagram/webview.js @@ -18,6 +18,11 @@ module.exports = (Ferdium, settings) => { ? link.getAttribute('href') : button.getAttribute('title'); + // check if the URL is relative or absolute + if (url.startsWith('/')) { + return; + } + // check if we have a valid URL that is not a script nor an image: if (url && url !== '#' && !Ferdium.isImage(link)) { event.preventDefault();