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
2021-08-27 11:27:34 +12:00
2021-08-27 11:27:34 +12:00
2017-10-12 11:30:11 +13:00
2016-05-11 09:46:28 +12:00
2016-09-27 17:10:47 +13:00
2021-05-17 16:30:31 +12:00
2020-10-20 19:05:16 +13:00
2019-11-18 15:30:41 -04:00
2021-05-12 01:01:46 +00:00
2020-12-22 14:22:49 +13:00
2021-05-24 17:30:50 +12:00
2020-12-22 10:25:15 +13:00
2021-08-08 21:51:13 +00:00

SilverStripe CMS

Build Status Latest Stable Version Latest Unstable Version codecov SilverStripe supported module Total Downloads License

PHP Content Management System (CMS), see http://silverstripe.org. Requires the framework module and a silverstripe-installer base project.

Installation

See installation instructions.

Bugtracker

Bugs are tracked on github.com. Please read our issue reporting guidelines.

Development and Contribution

If you would like to make changes to the SilverStripe core codebase, we have an extensive guide to contributing code.

Description
No description provided
Readme 28 MiB
Languages
PHP 73.3%
JavaScript 20%
Gherkin 4%
Scheme 2.1%
SCSS 0.6%