diff --git a/CHANGELOG.md b/CHANGELOG.md index a8d0d0b47..a100d969b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## mm/dd/2017 1. [](#bugfix) + * Fix for base paths containing special characters [#1799](https://github.com/getgrav/grav/issues/1799) * Fix for `vundefined` error for version numbers in GPM [form#222](https://github.com/getgrav/grav-plugin-form/issues/222) # v1.4.0-beta.2 diff --git a/system/src/Grav/Common/Uri.php b/system/src/Grav/Common/Uri.php index fb8ccd6ff..a67b19217 100644 --- a/system/src/Grav/Common/Uri.php +++ b/system/src/Grav/Common/Uri.php @@ -301,7 +301,7 @@ class Uri $this->url = $this->base . $this->uri; - $uri = str_replace($this->root, '', $this->url); + $uri = str_replace(static::filterPath($this->root), '', $this->url); // remove the setup.php based base if set: $setup_base = $grav['pages']->base();