Internal link paths

Benjamin Melançon's picture
Submitted by Benjamin Melançon on 2010, October 16 - 04:23
  • When making a link in HTML, you want to start it with a / to denote that the path is relative to the root of the site. This way, a link to the contact page at /contact works whether we are on the home page or on a deeply/nested/page.

    When putting an internal link for a menu item or anywhere else in Drupal, however, we leave off the starting slash and it is provided for us.

  • Book element

  • Gotcha