Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid lonely question mark for GridField URLs in CMS

  • Loading branch information...
commit c493dc730afa2f3b5f89d044962aa7c03634d622 1 parent 78038eb
@chillu chillu authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  admin/javascript/LeftAndMain.js
View
3  admin/javascript/LeftAndMain.js
@@ -714,7 +714,8 @@ 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.
- url = $.path.addSearchParams(url, window.location.search.replace(/^\?/, ''));
+ var params = window.location.search.replace(/^\?/, '');
+ if(params) url = $.path.addSearchParams(url, params);
$('.cms-container').loadPanel(url);
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.