Skip to main content
Tweeted twitter.com/#!/StackDrupal/status/57867968343842816
edited tags; edited title
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

Keep urlthe URL alias for a node when using href

Source Link

Keep url alias for node when using href

I am using Drupal 6 and I have set aliases for my nodes under Administer > Site building > URL aliases. This works properly; for example, I have alias = about/faq, node = node/33, and when I click on my menu the page shows up properly on the browser address bar as about/faq.

The problem I have occurs when I want to reference my node from hyperlinks placed in a page on the website (or any other website). I want to use <a href="http://mywebsite.com/node/33"> instead of <a href="http://mywebsite.com/about/faq"> so that I don't have to change the href if I later decide to change the alias. However, when I do this, the page shows up as http://mywebsite.com/node/33 on the browser address bar.

I was wondering whether it would be possible to have it show up as http://mywebsite.com/about/faq on the address bar instead.