Skip to content
This repository
Browse code

Avoid lonely question mark for GridField URLs in CMS

  • Loading branch information...
commit c493dc730afa2f3b5f89d044962aa7c03634d622 1 parent 78038eb
Ingo Schommer authored July 13, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  admin/javascript/LeftAndMain.js
3  admin/javascript/LeftAndMain.js
@@ -714,7 +714,8 @@ jQuery.noConflict();
714 714
 			showDetailView: function(url) {
715 715
 				// Include any GET parameters from the current URL, as the view state might depend on it.
716 716
 				// For example, a list prefiltered through external search criteria might be passed to GridField.
717  
-				url = $.path.addSearchParams(url, window.location.search.replace(/^\?/, ''));
  717
+				var params = window.location.search.replace(/^\?/, '');
  718
+				if(params) url = $.path.addSearchParams(url, params);
718 719
 				$('.cms-container').loadPanel(url);
719 720
 			}
720 721
 		});

0 notes on commit c493dc7

Please sign in to comment.
Something went wrong with that request. Please try again.