diff --git a/system/Router/Router.php b/system/Router/Router.php index 7ec367c48fe6..abf91e26379f 100644 --- a/system/Router/Router.php +++ b/system/Router/Router.php @@ -127,7 +127,7 @@ class Router implements RouterInterface * The filter info from Route Collection * if the matched route should be filtered. * - * @var string + * @var string|null */ protected $filterInfo; @@ -175,6 +175,9 @@ public function handle(string $uri = null) // Decode URL-encoded string $uri = urldecode($uri); + // Restart filterInfo + $this->filterInfo = null; + if ($this->checkRoutes($uri)) { if ($this->collection->isFiltered($this->matchedRoute[0]))