mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2535 from Martimiz/3.1
Strip duplicate querystrings from the url before adding document.location.search
This commit is contained in:
commit
0d993c1aac
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user