-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
title: 6.0.0 (unreleased) | ||
--- | ||
|
||
# 6.0.0 (unreleased) | ||
|
||
## Overview | ||
|
||
- [Run `CanonicalURLMiddleware` in all environments by default](#url-middleware) | ||
- [Bug fixes](#bug-fixes) | ||
|
||
## Run `CanonicalURLMiddleware` in all environments by default {#url-middleware} | ||
|
||
In Silverstripe CMS 5 [`CanonicalURLMiddleware`](api:SilverStripe\Control\Middleware\CanonicalURLMiddleware) only runs in production by default. This lead to issues with `fetch` and APIs behaving differently in production environments to development. Silverstripe 6.0 changes this default to run the rules in dev, test and live by default. | ||
|
||
To opt out of this change include the following in your `_config.php` | ||
|
||
```php | ||
use SilverStripe\Core\CoreKernel; | ||
|
||
if (Director::isDev()) { | ||
CanonicalURLMiddleware::singleton()->setEnabledEnvs([ | ||
CoreKernel::LIVE | ||
]); | ||
} | ||
``` | ||
|
||
## Bug fixes | ||
|
||
This release includes a number of bug fixes to improve a broad range of areas. Check the change logs for full details of these fixes split by module. Thank you to the community members that helped contribute these fixes as part of the release! | ||
|
||
<!--- Changes below this line will be automatically regenerated --> | ||
|
||
<!--- Changes above this line will be automatically regenerated --> |