Index: branches/unlabeled/unlabeled-1.3.2/kernel/include/globals.php =================================================================== diff -u -r7648 -r8103 --- branches/unlabeled/unlabeled-1.3.2/kernel/include/globals.php (.../globals.php) (revision 7648) +++ branches/unlabeled/unlabeled-1.3.2/kernel/include/globals.php (.../globals.php) (revision 8103) @@ -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]); }