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 }