Index: trunk/kernel/include/globals.php =================================================================== diff -u -N -r7635 -r8104 --- trunk/kernel/include/globals.php (.../globals.php) (revision 7635) +++ trunk/kernel/include/globals.php (.../globals.php) (revision 8104) @@ -1625,6 +1625,9 @@ } foreach($main as $vl_key => $vl_value) { + // we need to skip wid here, otherwise empty wid will become 0 and the window name for javascript will be changed (to main_0), + // making all links to original (main) window open in new window + if ($vl_key == 'wid') continue; if(!$vl_value) $main[$vl_key] = '0'; // unset($main[$vl_key]); }