From f3e3f83f3f53a7d75eb7d95b46c9e91a9fbac79f Mon Sep 17 00:00:00 2001 From: RobinLinus Date: Wed, 16 Dec 2020 06:15:25 +0100 Subject: [PATCH] Fix sharing link from Android phone --- client/scripts/ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/scripts/ui.js b/client/scripts/ui.js index 1357846..50eeecd 100644 --- a/client/scripts/ui.js +++ b/client/scripts/ui.js @@ -473,7 +473,9 @@ class WebShareTargetUI { let shareTargetText = title ? title : ''; shareTargetText += text ? shareTargetText ? ' ' + text : text : ''; - shareTargetText += url ? shareTargetText ? ' ' + url : url : ''; + + if(url) shareTargetText = url; // We share only the Link - no text. Because link-only text becomes clickable. + if (!shareTargetText) return; window.shareTargetText = shareTargetText; history.pushState({}, 'URL Rewrite', '/');