[support] Relative links in menu

Eric Mckenna eric.mckenna at gmail.com
Thu Sep 27 15:14:26 UTC 2007


I think its best to always use the l() funciton, 
http://api.drupal.org/api/function/l/5

One huge benefit to using l() is that aliases are automatically used for 
links that have them.

Vasileios Lourdas wrote:
> Hi,
>
> I'm using both primary and secondary links in a 5.2 site I've been developing. 
> I also use an extra menu which is displayed on the left sidebar. One of this 
> menu's options links to the integrated Drupal forum (forum path), which works 
> fine. I also have the same link in another menu item from the secondary links 
> (forum path). However, the latter is not rendered correctly. If I am at the 
> admin pages, the menu item at the secondary links is rendered based on the 
> current url and not on the site's root, so it could be rendered as 
> admin/forum or node/add/forum, etc. The menu item in the left sidebar is 
> always rendered without problem.
>
> Why is this happening? Is this a bug or something else I'm missing?
>
> Thanks,
>   



More information about the support mailing list