mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
734eb3921f
Fixes #2580 The call to `Director::makeRelative` transforms absolute links into relative links. Previously, this meant that you could pass in "https://example.co.nz/about-us" or "about-us" and get the same result, but passing in "https://example.co.nz/" and "/" would give _different_ results. This commit performs the transformation to a relative link _before_ checking if the path should be for the home page, which leads to more consistent results. |
||
---|---|---|
.. | ||
CurrentPageIdentifier.php | ||
RedirectorPage.php | ||
RedirectorPageController.php | ||
SiteTree.php | ||
SiteTreeExtension.php | ||
SiteTreeFileExtension.php | ||
SiteTreeFileFormFactoryExtension.php | ||
SiteTreeFolderExtension.php | ||
SiteTreeLink.php | ||
SiteTreeLinkTracking_Parser.php | ||
SiteTreeLinkTracking.php | ||
VirtualPage.php |