Skip to content

Commit

Permalink
DOC Document changes to the updateRelativeLink.
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Sep 14, 2022
1 parent db79fc5 commit 5a917f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions en/04_Changelogs/5.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ This is a major release and as a result there are a number of breaking API chang
### General changes {#api-general}

- `isDev` and `isTest` querystring arguments have been removed due to security concerns (see [ss-2018-005](https://www.silverstripe.org/download/security-releases/ss-2018-005/)).
- The `updateRelativeLink()` extension hook for updating the result of [SiteTree::RelativeLink()](api:SilverStripe\CMS\Model\SiteTree::RelativeLink()) has changed signature, allowing you to update the resultant link itself instead of just the component parts. If you are using this extension hook you will need to update the method signature and logic to match. See [SiteTreeExtension::updateRelativeLink()](api:SilverStripe\CMS\Model\SiteTreeExtension::updateRelativeLink()) for more details.
- The default value for the `RESOURCES_DIR` const has been changed to to "_resources"
- The `Library::DEFAULT_RESOURCES_DIR` const in `silverstripe/vendor-plugin` has been changed to match.
- This can still be customised using `extra.resources-dir` in your composer.json file ([see relevant docs](developer_guides/templates/requirements/#configuring-your-project-exposed-folders))
Expand Down

0 comments on commit 5a917f5

Please sign in to comment.