WL-2823 Make sure we link to the correct site.

Site.getURL() returns the primary URL of the site, we want the one related to the current location of the user in the hierarchy. This fixes the bug of users always being taken to a site's primary location in the hierarchy.