From f085b32507f4dce645daa6e6cfb2ccb766a5729a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 10 Dec 2016 20:57:39 +0100 Subject: [PATCH] Corrected router:2.0/controller/page url management --- src/config/router/2.0/routes.json | 2 +- src/packages/router/2.0/controller/page.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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']; }