mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
fix for special chars in slugs causing redirect loops
This commit is contained in:
parent
31aeaf6309
commit
8dfa2110bf
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user