preserve fragment in URLs (#315) (#687)

* preserve fragment in URLs (#315)

* fix: correctly handle URLs without a fragment

* simplify solution to (#315)
This commit is contained in:
arakimo 2023-08-05 08:04:25 +01:00 committed by GitHub
parent e5f2de0930
commit 2e1016e5f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,6 @@ func RemoveUTMParams(url string) (string, error) {
}
}
tmp.Fragment = ""
tmp.RawQuery = queryEncodeWithoutEmptyValues(queries)
return tmp.String(), nil
}