Drupal - no self-linking
Posted
by pygorex1
on Stack Overflow
See other posts from Stack Overflow
or by pygorex1
Published on 2010-05-03T23:20:58Z
Indexed on
2010/05/03
23:28 UTC
Read the original article
Hit count: 392
So, I've added several pages to my Drupal install and linking to the pages using URL aliases via the Path module. So far so good - http://mydrupal/node/1 becomes http://mydrupal/about which is exactly what I'm looking for. Then I'm adding these links to the primary navigation and outputting the primary links via a custom theme (copy and paste the primary link code from the Chameleon theme).
Here's the problem: when viewing http://mydrupal/about the page links to itself - that is the "About" link at http://mydrupal/about is still linking to http://mydrupal/about - the behavior I'm looking for is to have the "About" text display without a link.
In summary: how do I prevent self-linking of pages when displaying the primary navigation?
© Stack Overflow or respective owner