diff --git a/admin/javascript/LeftAndMain.Content.js b/admin/javascript/LeftAndMain.Content.js index 1c2dfec29..7347b7ff9 100644 --- a/admin/javascript/LeftAndMain.Content.js +++ b/admin/javascript/LeftAndMain.Content.js @@ -60,6 +60,9 @@ var url = $(node).find('a:first').attr('href'); if(url && url != '#') { + // strip possible querystrings from the url to avoid duplicateing document.location.search + url = url.split('?')[0]; + // Deselect all nodes (will be reselected after load according to form state) self.jstree('deselect_all'); self.jstree('uncheck_all');