Fixed ref instead of rel when stripping querystring from tracked url

no issue
This commit is contained in:
Simon Backx 2022-09-28 11:03:00 +02:00
parent e0965a6262
commit 03bfe2504e

View File

@ -22,7 +22,7 @@ export default class UtilsService extends Service {
*/
cleanTrackedUrl(url, display = false) {
// Remove our own querystring parameters and protocol
const removeParams = ['rel', 'attribution_id', 'attribution_type'];
const removeParams = ['ref', 'attribution_id', 'attribution_type'];
const urlObj = new URL(url);
for (const param of removeParams) {
urlObj.searchParams.delete(param);