From 933a0482fb42911624395bbafb0a1de54b22a501 Mon Sep 17 00:00:00 2001 From: Gwyneth Morgan Date: Tue, 7 Mar 2023 22:54:34 +0000 Subject: [PATCH] Remove Twitter s/t tracking parameters The `s` parameter seems to correspond to what type of device shared the Twitter URL (12 = Twitter for iOS, 20 = Twitter website, etc). `t` appears to be some sort of rotating tracker associated with the person who shared the URL; I've seen Twitter URLs shared by one person with the same `t` parameter for a few days, then their parameter changes and the old one doesn't seem to be used again. https://github.com/libredirect/libredirect/issues/532 --- src/assets/javascripts/services.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 07f7a52..3b69062 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -132,6 +132,8 @@ function redirect(url, type, initiator, forceRedirection) { search.delete("ref_src") search.delete("ref_url") + search.delete("s") // type of device that shared the link + search.delete("t") // some sort of tracking ID search = search.toString() if (search !== "") search = `?${search}`