} else {
$href = $page->getHRef();
if ($redirect) {
- $currentUri = Zend_Controller_Front::getInstance()->getRequest()->getRequestUri();
- if (strpos($currentUri, '?') !== false) {
- $currentUri = strstr($currentUri, '?', true);
- }
+ $currentUri = $this->view->url();
$href = $this->view->addParamToUrl($href, 'redirect', $currentUri, true);
}
$link = $this->view->anchor($href, $text, array('class' => 'footer-anchor'));