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