diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index 1134714c0..387ece8f9 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -670,7 +670,7 @@ jQuery.noConflict(); showDetailView: function(url) { // Include any GET parameters from the current URL, as the view state might depend on it. // For example, a list prefiltered through external search criteria might be passed to GridField. - if(window.location.search) url += window.location.search; + url = $.path.addSearchParams(url, window.location.search.replace(/^\?/, '')); $('.cms-container').loadPanel(url); } });