diff -r 5e7a0fedabdf -r 877f952ae2bd web/lib/Zend/Navigation/Page/Uri.php --- a/web/lib/Zend/Navigation/Page/Uri.php Thu Mar 21 17:31:31 2013 +0100 +++ b/web/lib/Zend/Navigation/Page/Uri.php Thu Mar 21 19:50:53 2013 +0100 @@ -15,9 +15,9 @@ * @category Zend * @package Zend_Navigation * @subpackage Page - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License - * @version $Id: Uri.php 20096 2010-01-06 02:05:09Z bkarwin $ + * @version $Id: Uri.php 24593 2012-01-05 20:35:02Z matthew $ */ /** @@ -31,7 +31,7 @@ * @category Zend * @package Zend_Navigation * @subpackage Page - * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) + * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ class Zend_Navigation_Page_Uri extends Zend_Navigation_Page @@ -79,7 +79,18 @@ */ public function getHref() { - return $this->getUri(); + $uri = $this->getUri(); + + $fragment = $this->getFragment(); + if (null !== $fragment) { + if ('#' == substr($uri, -1)) { + return $uri . $fragment; + } else { + return $uri . '#' . $fragment; + } + } + + return $uri; } // Public methods: