Drupal Technical
[SOLVED][Drupal Views] Space gets added before the file name in the URL while rewriting output
A few Drupal 7 users while trying to rewrite the output of a field as a link in a View found out that a space gets added before the file name in the URL. If you are facing the same scenario while using Drupal Views in your Drupal 7 website the read on to know the solution.
Here is the solution. The trick lies in the 'Formatter' of the field. Follow the steps below to clear it up.
- Ensure that the 'Formatter' of the field is 'URL to file' not 'Generic File'.
- Next implement your custom rewrite(replacement patterns are allowed).
- After that check 'Output this field as a link'.
- Next apply the replacement pattern of the file field in the 'Link Path'.
- Check the checkbox 'Use absolute path'.
- Save
Hope that helps.
The easiest way to solve a Drupal issue is to hand it to the Drupal experts. Do you need professional help in building your Drupal site? We can provide a wide range of Drupal services to help you deploy your Drupal site easily and quickly. Get in touch with us to know more.
Reference: http://drupal.org/node/1308078