Loading modules/redirect_404/src/EventSubscriber/Redirect404Subscriber.php +2 −2 Original line number Diff line number Diff line Loading @@ -105,11 +105,11 @@ class Redirect404Subscriber implements EventSubscriberInterface { $path = $this->currentPath->getPath(); // Ignore paths specified in the redirect settings. if ($pages = mb_strtolower($this->config->get('pages'))) { if ($pages = $this->config->get('pages')) { // Do not trim a trailing slash if that is the complete path. $path_to_match = $path === '/' ? $path : rtrim($path, '/'); if ($this->pathMatcher->matchPath(mb_strtolower($path_to_match), $pages)) { if ($this->pathMatcher->matchPath(mb_strtolower($path_to_match), mb_strtolower($pages))) { return; } } Loading Loading
modules/redirect_404/src/EventSubscriber/Redirect404Subscriber.php +2 −2 Original line number Diff line number Diff line Loading @@ -105,11 +105,11 @@ class Redirect404Subscriber implements EventSubscriberInterface { $path = $this->currentPath->getPath(); // Ignore paths specified in the redirect settings. if ($pages = mb_strtolower($this->config->get('pages'))) { if ($pages = $this->config->get('pages')) { // Do not trim a trailing slash if that is the complete path. $path_to_match = $path === '/' ? $path : rtrim($path, '/'); if ($this->pathMatcher->matchPath(mb_strtolower($path_to_match), $pages)) { if ($this->pathMatcher->matchPath(mb_strtolower($path_to_match), mb_strtolower($pages))) { return; } } Loading