diff --git a/src/includes/js/LSview.js b/src/includes/js/LSview.js index d3a6bf41..c038780e 100644 --- a/src/includes/js/LSview.js +++ b/src/includes/js/LSview.js @@ -121,7 +121,9 @@ var LSview = new Class({ }, removeFromA: function(a) { - document.location = a.href+'?valid'; + var validatedURL = new URL(a.href); + validatedURL.searchParams.set('valid', '1'); + document.location = validatedURL.href; }, onCustomActionBtnClick: function(event,a) { @@ -153,7 +155,9 @@ var LSview = new Class({ }, executeCustomActionFromA: function(a) { - document.location = a.href+'&valid'; + var validatedURL = new URL(a.href); + validatedURL.searchParams.set('valid', '1'); + document.location = validatedURL.href; }, toggleLSviewActions: function(ul) {