Op Tuesday 26 May 2009 17:02:39 schreef Tim Fountain: > On 23/05/2009, Jurian Sluiman <[email protected]> wrote: > > I use the Zend_Navigation in my system. To point to the homepage, I use > > an empty uri element. In the Zend_View_Helper_Navigation_Menu there is a > > htmlify() method which resets the element to a <span> instead of an <a> > > tag. > > This sounds perfectly reasonable to me, personally I wouldn't want the > navigation helpers to be outputting links that don't go anywhere. > > I would suggest setting the URI to just / for your homepage, as this > (should be) the correct path anyway.
Hi Tim, It looks like setting / might work in most cases, but not for me. My application is completely i18n and an uri is built like http://mywebsite.com/en/my/page. For hyperlinks you want to go to another page but maintain the current language. Therefore I have hrefs like "another/page" and a base href "http://mywebsite.com/en/". I'd like not to change this behaviour because it has also benefits for eg SEO (all content has another uri: no different content, or languages, at the same uri). If you point to '/', you'll go to http://mywebsite.com/ and loose the current language. That's why '/' as a href is not working (unless I create some ugly hacks like remembering the language and redirect to it). Thanks for your advice anyway! Regards, Jurian -- Jurian Sluiman Soflomo.com
