From 14d58011cdece421f4095ebe55d42962f10eb062 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Fri, 3 Aug 2018 14:50:33 +0200 Subject: [PATCH] Added another tracking parameter for removal. --- removetracking.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/removetracking.go b/removetracking.go index a3179a3..157f07e 100644 --- a/removetracking.go +++ b/removetracking.go @@ -30,5 +30,9 @@ func removeTracking(input string) (output string, err error) { // used for tracking the referer by some feeds. output = strings.Split(output, "#ref=")[0] + // Remove the URL part starting with "?ref=", which is + // used for tracking the referer by some feeds. + output = strings.Split(output, "?ref=")[0] + return output, err }