I have set up a view to pull in images for rotation.
I also have that Banner Content type offer a link which I have pull into the view but mark hidden.

I assign the Image within the view to this URL by changing "Output this field as a link" to "Link path:" with a value of "[field_banner_link_url]" which is the right name for the link.

In the Content... I assign a link like "node/5"

The preview below "looks fine" displaying the proper path... BUT the block version displays an extra folder.

Instead of this: /drupal/node/5
I get this: /drupal//drupal/node/5 or rather that actual link is:

I am not sure where this is coming from. I have looked through your model, changes templates to see if that had a factor... I am stumped.

It works however if I put in the FULL URL of http://test.com/drupal/node/5

I thought it might have to due with drupal being in a folder under the domain... I will test under a subdomain instead of a folder.

Any thoughts?

Comments

neofactor’s picture

FYI - A full qualified domain name path starting with http:// works fine.. so it is something on the Drupal side re-writing the relative path.

neofactor’s picture

I think I just figured this out...

If the View has the Field for link to format: "URL, as plain text" - this is what causes the issue! I am unsure why.. but changing that to anything else seems to have resolved it.

Don't you just love solving your own problems? Please verify if you can.. I would love to know if this is confirmed.

scip’s picture

I can't confirm, but I had the same behaviour. Thanks for the solution!