diff --git a/system/modules/isotope/templates/modules/mod_iso_productlist_caching.html5 b/system/modules/isotope/templates/modules/mod_iso_productlist_caching.html5 index f04790e2ca..4a169456b2 100644 --- a/system/modules/isotope/templates/modules/mod_iso_productlist_caching.html5 +++ b/system/modules/isotope/templates/modules/mod_iso_productlist_caching.html5 @@ -12,10 +12,11 @@ (function() { Isotope.displayBox('message ?>'); - var url = window.location.href + (document.location.search ? '&' : '?') + '&buildCache=1', - xhr = new XMLHttpRequest(); + var url = new URL(window.location.href); + url.searchParams.set('buildCache', '1'); - xhr.open('GET', encodeURI(url)); + var xhr = new XMLHttpRequest(); + xhr.open('GET', encodeURI(url.toString()); xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); xhr.onload = function() { @@ -30,4 +31,4 @@ xhr.send(); })(); -endblock(); ?> \ No newline at end of file +endblock(); ?>