From 2cb74e68cce4b3ea770ae97daca245dd5136b85a Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sat, 2 Oct 2021 23:03:39 +0200 Subject: [PATCH] setting includes filters in URL in address bar and share link --- html/script.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/html/script.js b/html/script.js index 0e23550..250aff9 100644 --- a/html/script.js +++ b/html/script.js @@ -961,7 +961,7 @@ function initPage() { new Toggle({ key: "shareFilters", - display: "Include Filters In Share Link", + display: "Include Filters In URLs", container: "#settingsLeft", init: false, setState: function(state) { @@ -5287,16 +5287,15 @@ function updateAddressBar() { } } - shareLink = (shareBaseUrl ? shareBaseUrl : pathName) + string + shareFilter; - - + string += shareFilter; + shareLink = (shareBaseUrl ? shareBaseUrl : pathName) + string; if (uuid) return; if (icaoFilter) return; - if (SelPlanes.length == 0 && initialURL && initialURL.indexOf("icao") < 0 && !replay) { + if (SelPlanes.length == 0 && initialURL && initialURL.indexOf("icao") < 0 && !replay && shareFilter == '') { string = initialURL; } else { string = pathName + string;