mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Strip duplicate querystrings from the url before adding document.location.search
When a querystring is passed with the url (for example Translatable locale) it is duplicated each time the content panel is reloaded, by adding document.location.search and so it should be stripped from the url first.
This commit is contained in:
parent
14e5c80dad
commit
364ce08f52
@ -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