diff --git a/CHANGELOG.md b/CHANGELOG.md index c8638969e..5160987e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ -# v1.7.42 -## mm/dd/2023 +# v1.7.41.2 +## 06/01/2023 -1. [](#improved) - * Added the ability to set a configurable 'key' for the Twig Cache Tag: `{% cache 'my-key' 600 %}` +1. [](#bugfix) + * Fixed an issue with special characters in slug's would cause redirect loops # v1.7.41.1 ## 05/10/2023 diff --git a/system/src/Grav/Common/Service/PagesServiceProvider.php b/system/src/Grav/Common/Service/PagesServiceProvider.php index 0e10d144e..a6fc59ed2 100644 --- a/system/src/Grav/Common/Service/PagesServiceProvider.php +++ b/system/src/Grav/Common/Service/PagesServiceProvider.php @@ -59,7 +59,7 @@ class PagesServiceProvider implements ServiceProviderInterface /** @var Uri $uri */ $uri = $grav['uri']; - $path = $uri->path() ?: '/'; // Don't trim to support trailing slash default routes + $path = $uri->path() ? urldecode($uri->path()) : '/'; // Don't trim to support trailing slash default routes $page = $pages->dispatch($path); // Redirection tests