I have created a view based on a simple content type comprising of a title, a file and a short description and I am wanting to replace the URL of the title with that of the file.

I have set the field order as; File > Title > Description and the URL formatter of the File is set as 'URL to file'. In addition I have also disabled 'Link this field to the original piece of content' in the Title. For the moment the File URL is included in the display for cross checking purposes.

The File URL is printing correctly, however the the replacement token in the Title is not. I should say also that my client is in the habiting of including spaces the file names. For example '16 march 12.pdf' , which of course results in lots of %20 in the url.

So a typical url should be http://mysite.com/sites/default/files/16%20march%2012.pdf

However the token is printing http://mysite.com/%0A%20%20http%3A//mysite.com/sites/default/files/16%25...

Any pointers would be most appreciated.

This exactly the same setup which I have on another site which is working as it should.

Comments

mrpauldriver’s picture

Status: Active » Fixed

This turned out to be a issue caused by the Fences module and was perhaps nothing to do with Views.

The issue goes away when Fences is disabled.

Please would the maintainer move this thread to the Fences issue queue.

mrpauldriver’s picture

Title: File URL token replacement in Title prints corrupted URL » Fences module causes Token problem with Views. File URL token replacement prints corrupted URL
Status: Fixed » Active
mrpauldriver’s picture

Issue summary: View changes

refined

mustanggb’s picture

Project: Views (for Drupal 7) » Fences - Semantic field markup and classes
Version: 7.x-3.5 » 7.x-2.x-dev
Category: Support request » Bug report
Issue summary: View changes