From ffeee38d7d263727e95c151e317778399a1f6922 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 31 May 2020 10:49:50 +0200 Subject: [PATCH] remove facebook spam from url --- source/UI/js/Core/URL.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/UI/js/Core/URL.js b/source/UI/js/Core/URL.js index 814044d0..784e27ec 100644 --- a/source/UI/js/Core/URL.js +++ b/source/UI/js/Core/URL.js @@ -809,7 +809,10 @@ Ox.URL = function(options) { } function parseURL(str, callback) { + // remove facebook spam + str = str.replace(/\?fbclid=[A-Za-z0-9_]+/, '') // fixme: removing trailing slash makes it impossible to search for '/' + var split = str.split('#'), parts = split.shift().replace(/(^\/|\/$)/g, '').split('/'), state = split.length && split[0].length