Commit 3895ec38 authored by Atanas Sotirov's avatar Atanas Sotirov
Browse files

Issue #3258438 by nortmas: Fatal error if country path is /us and you try to reach /user page

parent 61e15c23
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ class CountryPathProcessor implements InboundPathProcessorInterface, OutboundPat
      return $path;
    }

    if (preg_match('/^\/' . $domain_suffix . '/i', $path, $matches)) {
    if (preg_match('/^\/' . $domain_suffix . '(\/|$)/i', $path, $matches)) {
      $path = preg_replace('@^/' . $domain_suffix . '(.*)@', '$1', $path);
    }