diff --git a/config templates/config/ClientDependency.config b/config templates/config/ClientDependency.config index aa695b38f1..ed4c3ee102 100644 --- a/config templates/config/ClientDependency.config +++ b/config templates/config/ClientDependency.config @@ -10,7 +10,7 @@ NOTES: * Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config * A new version will invalidate both client and server cache and create new persisted files --> - + diff --git a/umbraco/presentation/config/ClientDependency.config b/umbraco/presentation/config/ClientDependency.config index f6be1a0d69..78a1e9eaf2 100644 --- a/umbraco/presentation/config/ClientDependency.config +++ b/umbraco/presentation/config/ClientDependency.config @@ -10,7 +10,7 @@ NOTES: * Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config * A new version will invalidate both client and server cache and create new persisted files --> - + diff --git a/umbraco/presentation/umbraco_client/Tree/UmbracoTree.js b/umbraco/presentation/umbraco_client/Tree/UmbracoTree.js index c27ff97d46..5e055b2d1e 100644 --- a/umbraco/presentation/umbraco_client/Tree/UmbracoTree.js +++ b/umbraco/presentation/umbraco_client/Tree/UmbracoTree.js @@ -880,15 +880,17 @@ Umbraco.Sys.registerNamespace("Umbraco.Controls"); _getUrlParams: function(nodeSource) { /// This converts Url query string params to json var p = {}; - var urlSplit = nodeSource.split("?"); - if (urlSplit.length > 1) { - var sp = urlSplit[1].split("&"); - for (var i = 0; i < sp.length; i++) { - var e = sp[i].split("="); - p[e[0]] = e[1]; + if (nodeSource) { + var urlSplit = nodeSource.split("?"); + if (urlSplit.length > 1) { + var sp = urlSplit[1].split("&"); + for (var i = 0; i < sp.length; i++) { + var e = sp[i].split("="); + p[e[0]] = e[1]; + } + p["rnd2"] = Umbraco.Utils.generateRandom(); } - p["rnd2"] = Umbraco.Utils.generateRandom(); - } + } return p; },