/** * Redirects to the specified route. * * @param string $routeName * @param array $params * @param array $options * @return \Zend\Http\Response */ protected function redirectToRoute($routeName, array $params = array(), array $options = array()) { $path = $this->url()->fromRoute($routeName, $params, $options); $uri = new \Zend\Uri\Http($this->getBaseUri()); $uri->setPath($path); return $this->redirect()->toUrl($uri->toString()); }