X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fviews%2Fhelpers%2FFooterLink.php;h=50a2f0b8abde8b2accf8c8db030fc9503a20a181;hp=46788c6a63fab9e4f48a5c7b7db5814aab25e185;hb=3c439d97a293838053975b3db0899b79abe6ca16;hpb=f3d301cf61cd09ad9089efb5d016e05ce6318bee diff --git a/application/views/helpers/FooterLink.php b/application/views/helpers/FooterLink.php index 46788c6..50a2f0b 100644 --- a/application/views/helpers/FooterLink.php +++ b/application/views/helpers/FooterLink.php @@ -11,10 +11,7 @@ class Syj_View_Helper_FooterLink extends Zend_View_Helper_Abstract } 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'));