Index: branches/1.2.x/platform/inc/jquery/thickbox/thickbox.js =================================================================== diff -u -N -r14274 -r14561 --- branches/1.2.x/platform/inc/jquery/thickbox/thickbox.js (.../thickbox.js) (revision 14274) +++ branches/1.2.x/platform/inc/jquery/thickbox/thickbox.js (.../thickbox.js) (revision 14561) @@ -349,7 +349,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];