[SOLVED][Drupal Views] Output this field as link (with token) adding double slash to node URL

| | 1 min read

A Drupal user had reported that using the "Output this field as a link" along with the [path] token adds double slash to the node URL path. Clicking on this URL was not taking the user to the node page. If you are encountering the same issue while using a Drupal View in your Drupal site then read on to find out more.

Here is the solution

  • You have to configure the Content: Path field which had been previously included.
  • In the Content: Path field check Use absolute link (begins with "http://").
  • This allows you to use the [path] replacement pattern in "Output this field as link" without the initial double-slashes.
  • If that does not work then use the "Rewrite the output of this field" functionality and manually output the tags.

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.