We are using a multisite configuration that uses subfolders rather than separate domains or subdomains. When I tested Multisite Search with our configuration the paths returned when searching from one of the subsites were not correct. The subfolder path was appended to all of the paths, whether it should be there or not.
For example: A main site of example.com, all search results were correct (http://example.com/node/1). However, a search on a multisite of example.com/test returned results of http://example.com/test/node/1 for items in the example.com site and http://example.com/test/test/node/1 for items in the example.com/test site.
I suspect my "fix" will break other implementations but for our case all I needed to do was modify line 463
'link' => $msite_url.url('node/'. $item->sid),
to
'link' => $msite_url . '/node/'. $item->sid,
This used the path from the site name link which was already correct. I need to do further testing but it appears to have resolved the issues with our configuration.
Comments
Comment #1
earthday47Could you test this with the 6.x-2.0 version of the module? I changed the implementation, it may work now.
I removed the call to url() and manually build the URL now.
multisite_search.module, line 527:
which calls an internal function that searches the url_alias table for a path alias.