fix for special chars in slugs causing redirect loops

This commit is contained in:
Andy Miller 2023-06-01 15:16:56 -06:00
parent 31aeaf6309
commit 8dfa2110bf
No known key found for this signature in database
GPG Key ID: 9F2CF38AEBDB0AE0
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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