XWIKI-9333: Links to the main wiki are broken in a domain-based multiwiki if xwiki.home is set in xwiki.cfg
(cherry picked from commit 0a5d76f408b2404444a7241a79f105f2b86fba8f)