Browse files

Smarter concat of query params in LeftAndMain.js

Broke when CMS URL already had query params,
such as ?locale=en_US with the Translatable module enabled.
With this patch it doesn't double-concat ?locale....
Still doubles query params, but that's acceptable
until we find a more solid URL manipulation lib for JS.
  • Loading branch information...
1 parent c07d4ec commit fa62c1b0ba718ff8d781f6eea9ec50a523c6f293 @chillu chillu committed Jun 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/javascript/LeftAndMain.js
@@ -670,7 +670,7 @@ 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.
- if( url +=;
+ url = $.path.addSearchParams(url,^\?/, ''));

0 comments on commit fa62c1b

Please sign in to comment.