Index: branches/5.1.x/core/admin_templates/js/jquery/thickbox/thickbox.js =================================================================== diff -u -r13895 -r14144 --- branches/5.1.x/core/admin_templates/js/jquery/thickbox/thickbox.js (.../thickbox.js) (revision 13895) +++ branches/5.1.x/core/admin_templates/js/jquery/thickbox/thickbox.js (.../thickbox.js) (revision 14144) @@ -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];