mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-06-25 22:19:42 +02:00
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. |
||
---|---|---|
.. | ||
BatchActions | ||
Controllers | ||
Forms | ||
GraphQL | ||
Model | ||
Reports | ||
Search | ||
Tasks |