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
This commit is contained in:
parent
4ddfca0f74
commit
933a0482fb
|
@ -132,6 +132,8 @@ function redirect(url, type, initiator, forceRedirection) {
|
||||||
|
|
||||||
search.delete("ref_src")
|
search.delete("ref_src")
|
||||||
search.delete("ref_url")
|
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()
|
search = search.toString()
|
||||||
if (search !== "") search = `?${search}`
|
if (search !== "") search = `?${search}`
|
||||||
|
|
Loading…
Reference in New Issue