From e497e7a7ace5e274030dadcc6c32a8a1a8673894 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 31 Aug 2020 23:12:46 +0200 Subject: [PATCH] remove anything after fbclid=, closes #3240 --- source/UI/js/Core/URL.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/UI/js/Core/URL.js b/source/UI/js/Core/URL.js index 784e27ec..f411d692 100644 --- a/source/UI/js/Core/URL.js +++ b/source/UI/js/Core/URL.js @@ -810,7 +810,8 @@ Ox.URL = function(options) { function parseURL(str, callback) { // remove facebook spam - str = str.replace(/\?fbclid=[A-Za-z0-9_]+/, '') + //str = str.replace(/\?fbclid=[A-Za-z0-9_]+/, '') + str = str.replace(/\?fbclid=.*/, '') // fixme: removing trailing slash makes it impossible to search for '/' var split = str.split('#'),