addition fix for #1342

As we can not detect real site base URI (in multihost mode) assume it's
same as $cfg['mainurl']