mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Fixed ref instead of rel when stripping querystring from tracked url
no issue
This commit is contained in:
parent
e0965a6262
commit
03bfe2504e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user