Index: branches/5.2.x/core/admin_templates/js/jquery/thickbox/thickbox.js =================================================================== diff -u -N -r14244 -r14572 --- branches/5.2.x/core/admin_templates/js/jquery/thickbox/thickbox.js (.../thickbox.js) (revision 14244) +++ branches/5.2.x/core/admin_templates/js/jquery/thickbox/thickbox.js (.../thickbox.js) (revision 14572) @@ -429,7 +429,7 @@ } TB.parseRedirect = function ($data) { - var $match_redirect = new RegExp('^#redirect#(.*)').exec($data); + var $match_redirect = new RegExp('^#redirect#(.*?)($|\\s.*)').exec($data); if ($match_redirect != null) { // redirect to external template requested return $match_redirect[1];