silverstripe-cms/code
GuySartorelli 734eb3921f
FIX: Treat absolute links in a consistent manner in get_by_link.
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.
2021-09-21 17:09:48 +12:00
..
BatchActions Use short array syntax across the module's codebase 2020-04-19 16:18:01 +12:00
Controllers FIX undefined variable inChangeSets 2021-03-05 14:48:08 +13:00
Forms BUG Honour URL suffix on URL Segment field 2020-08-06 14:23:58 +12:00
GraphQL NEW: getByLink plugin allows arrays of links (#2666) 2021-09-07 09:34:52 +12:00
Model FIX: Treat absolute links in a consistent manner in get_by_link. 2021-09-21 17:09:48 +12:00
Reports PATCH: better english 2020-07-08 10:16:19 +12:00
Search Use short array syntax across the module's codebase 2020-04-19 16:18:01 +12:00
Tasks ENH Replace E_USER_ERROR errors with exceptions 2020-09-24 17:06:31 -07:00