Redirects module bugfix

This commit is contained in:
4Giedrius committed 2014-11-13 10:40:29 +02:00
1 parent 6c374e38df
commit 66647f3f62
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -61,6 +61,7 @@ class Box_App {
$mod = filter_var($mod, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH);
$this->mod = $mod;
$this->uri = $requestUri;
}
protected function init(){}
@@ -56,7 +56,7 @@ class Client implements \Box\InjectionAwareInterface
public function do_redirect(\Box_App $app)
{
$service = $this->di['mod_service']('redirect');
$target = $service->getRedirectByPath($app->url);
$target = $service->getRedirectByPath($app->uri);
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: ".$target );
exit;