I have a content type Advert, which have image and URL fields and I put it in a block to place it on the page.

All works fine EXCEPT when the advertiser provides a mixed case Bit.ly shortened link to their site, Drupal is converting it to lower case but Bit.ly is case sensitive and either does not find the link at all or it redirect to another . How can I force Drupal to retain the mixed case URL, at least for external URLs? The Bit.ly link is important as the advertiser uses it to track ad clicks and hence the performance of the advert on our site

  • Where / how are you storing the link? Commented Oct 9, 2015 at 9:21
  • you can do it simply add css property on specific add css property text-transformation first letter is capital Commented Oct 9, 2015 at 9:23
  • I store it as a URL field in the content type. I would not know where to start to add the css property I am afraid. The configuration of the site is entirely through module configuration and no bespoke code. I did not create the template although I have on occasions added the odd line at the end of the css files. The llink format is usually of the form: bit.ly/1jcmXY8 but the caps can be anywhere in the final part of the string.
    – M-dash
    Commented Oct 9, 2015 at 9:33
  • Thanks, but I don't think text transformation would do it as I want to retain the capitalisation not shift it all to upper or lower case.
    – M-dash
    Commented Oct 9, 2015 at 9:39
  • CSS text transformation has nothing to do with case sensitivity of a URL. It's for display purposes only, the browser will still follow the link in the HTML. @M-dash When you say "Drupal is converting it to lower case", what do you mean? When is it doing that?
    – Clive
    Commented Oct 9, 2015 at 9:41

1 Answer 1


Doh, what a dummy! I missed an option in rewrite results on the image field to set output as link with no transform!

Thanks everybody.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.