From a5854a388f703ffed0f1e2699722b36e4daa6c17 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Tue, 27 Dec 2022 18:01:24 +0300 Subject: [PATCH] Added #m to twitter links https://github.com/libredirect/libredirect/issues/532 --- src/assets/javascripts/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 01523d5..d763bf6 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -169,7 +169,7 @@ function redirect(url, type, initiator, forceRedirection) { if (url.pathname.split("/").includes("tweets")) return `${randomInstance}${url.pathname.replace("/tweets", "")}${search}` if (url.host == "t.co") return `${randomInstance}/t.co${url.pathname}` - return `${randomInstance}${url.pathname}${search}` + return `${randomInstance}${url.pathname}${search}#m` case "yattee": return url.href.replace(/^https?:\/{2}/, "yattee://") case "freetube":