diff --git a/src/packages/router/2.0/controller/api.php b/src/packages/router/2.0/controller/api.php index 5d8e628..22d7ef1 100644 --- a/src/packages/router/2.0/controller/api.php +++ b/src/packages/router/2.0/controller/api.php @@ -18,7 +18,7 @@ */ public function __construct($matches){ /* (1) Rebuild request url */ - $url = $matches['module'].'/'.$matches['method'].$matches['inurl_arguments']; + $url = $matches['module'].'/'.$matches['method'].$matches['url_arguments']; /* (2) Creates request */ $this->request = Request::remote($url, $_POST); diff --git a/src/packages/router/2.0/controller/redirect.php b/src/packages/router/2.0/controller/redirect.php index 63f6b29..7b10307 100644 --- a/src/packages/router/2.0/controller/redirect.php +++ b/src/packages/router/2.0/controller/redirect.php @@ -19,7 +19,7 @@ * */ public function homepage(){ - header('Location: /testxfw/homepage/'); + header('Location: /homepage/'); } /* POST-CALL