sheadawson/silverstripe-multisites — pull request #37 by NGlasl (2014-07-18 05:35:02+00:00)
Title: URLs are coming through incorrectly when linking pages from another site...

... instance.

This looks to have been changed a while back in https://github.com/NGlasl/silverstripe-multisites/commit/981fda7d14720f39955850ee1b724846a8954153, however the title seems to contradict the commit itself. My understanding is that **BaseURL** was expected to always return **/**, which would be the case for most site domains.

An example of my findings using a site host **test**, which has a child page with URL **page**. If I were to retrieve this child page link from a path of **localhost/project**, it will come out as something like **test/project/page**, resulting in a 404.