Merge pull request 'Remove Twitter s/t tracking parameters' (#78) from gwymor/libredirect:strip-twitter-tracker-params into master

Reviewed-on: https://codeberg.org/LibRedirect/libredirect/pulls/78
This commit is contained in:
Ikel 2023-03-08 06:22:29 +00:00
commit 594b8e571f
1 changed files with 2 additions and 0 deletions

View File

@ -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}`