diff --git a/src/config/router/2.0/routes.json b/src/config/router/2.0/routes.json index dc2a93b..eb9050c 100644 --- a/src/config/router/2.0/routes.json +++ b/src/config/router/2.0/routes.json @@ -26,7 +26,7 @@ "methods": ["GET"], "controller": "redirect:homepage", "arguments": { - "any": ".+" + "any": ".*" } } diff --git a/src/packages/router/2.0/controller/page.php b/src/packages/router/2.0/controller/page.php index 2b45776..9a132d5 100644 --- a/src/packages/router/2.0/controller/page.php +++ b/src/packages/router/2.0/controller/page.php @@ -13,8 +13,8 @@ * @url Calling URI * */ - public function __construct($pagename){ - $this->pagename = $pagename; + public function __construct($url){ + $this->pagename = $url['page']; }