public function defaultAction()
    {
        $lng = \Cmf\Language\Factory::get($this);
        HelperFactory::getMeta()->clear();
        HelperFactory::getJS()->clear();
        HelperFactory::getStyle()->clear();
        HelperFactory::getTitle()->setTitle('Redirect');
        if ($path = urldecode(Application::getRequest()->get('path'))) {
            HelperFactory::getMeta()->addTag('refresh', '0; url=' . $path);
            $response = ['path' => $path];
        } else {
            $response = ['error' => $lng['error_badPath']];
        }

        return $response;
    }
public function defaultAction()
    {
        $lng = \Cmf\Language\Factory::get($this);
        HelperFactory::getMeta()->clear();
        HelperFactory::getJS()->clear();
        HelperFactory::getStyle()->clear();
        HelperFactory::getTitle()->setTitle('Redirect');
        if ($path = urldecode(Application::getRequest()->get('path'))) {
            HelperFactory::getMeta()->addTag('refresh', '0; url=' . $path);
            $response = ['path' => $path];
        } else {
            $response = ['error' => $lng['error_badPath']];
        }

        return $response;
    }
public function defaultAction ( ) { $ lng = \ Cmf \ Language \ Factory :: get ( $ this ) ; HelperFactory :: getMeta ( ) -> clear ( ) ; HelperFactory :: getJS ( ) -> clear ( ) ; HelperFactory :: getStyle ( ) -> clear ( ) ; HelperFactory :: getTitle ( ) -> setTitle ( 'Redirect' ) ; if ( $ path = urldecode ( Application :: getRequest ( ) -> get ( 'path' ) ) ) { HelperFactory :: getMeta ( ) -> addTag ( 'refresh' , '0; url=' . $ path ) ; $ response = [ 'path' => $ path ] ; } else { $ response = [ 'error' => $ lng [ 'error_badPath' ] ] ; } return $ response ; }
This method display redirect page

@return array
This method display redirect page