From 618a2588beeed0fdcd596520b476b6c54c6d312e Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 8 Dec 2016 19:17:38 +0100 Subject: [PATCH] fixed router:2.0/redirect|api --- src/packages/router/2.0/controller/api.php | 2 +- src/packages/router/2.0/controller/redirect.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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