Skip to content

Commit

Permalink
Merge pull request #2207 from julio-b/del-fbclid
Browse files Browse the repository at this point in the history
Delete fbclid parameter from facebook's urls
  • Loading branch information
bcyphers authored Nov 27, 2018
2 parents b623ff9 + 1216e96 commit e2fbae4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/firstparties/facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ function cleanLink(a) {
return;
}

let href_url = new URL(href);
href_url.searchParams.delete('fbclid');
href = href_url.toString();

cleanAttrs(a);
a.href = href;
a.rel = "noreferrer";
Expand Down

0 comments on commit e2fbae4

Please sign in to comment.