Hi everyone,
I have a concern regarding converting URL's to links. What I am trying to achieve is
For a URL like drupal.org/node/12345 I want the system to automatically treat it as Link like http://drupal.org/node/12345.
Regularly we have the option "Convert URLs into links" in the config page of any text format. which usually work when the URLs entered are like below
http://drupal.org/node/1234
https://drupal.org/node/1234
www.drupal.org/node/1234
http://www.drupal.org/node/1234
https://www.drupal.org/node/1234
But If we try to have only
drupal.org/node/1234
It doesn't convert to link by default. So, I want to have that implemented. All pointers are most welcome :)
Comments
That's not a URL, but ....
Your example has no protocol identifier, so it is not a URL.
However, with https://www.drupal.org/project/customfilter you should be able to create a regular-expression filter that detects such a string and turns it into a clickable link.
Thanks for the response
Thanks for the response yelvington. Though I got it to work with a custom approach. Will do try your suggestion as well and let you know the outcome !
Regards,
ykarthikvarma