Masking link/url destination
chazz - September 5, 2008 - 13:27
| Project: | Link |
| Version: | 5.x-2.3.1 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Hello,
Is there any way to mask link/url ? Here is the example:
I have a node with cck field and there is a link to www.examplewebsite.com/something.html
Is it possible to add a mask like this www.mysite.com/redirect/deal1
You can see this live in action on
If you click GO TO DEAL you will see url http://www.hotukdeals.com/visit/?m=1959&q=225643 and this will redirect you to proper website (in this case http://www.theultimatesteal.co.uk/store/msshuk/ContentTheme/pbPage.End_o...)
Anyone have idea how to do this ? Thank you for your help!

#1
No, it's not possible with link module currently. It's possible by coding a custom module that provides a formatter for link fields, but no one has taken up this cause.
#2
Is the the purpose of this to gather statistics on how many times a Link has been clicked?
#3
Subscribing, I am looking for a way to mask external links as well. Very useful if you have affiliate marketing outgoing links.
#4
Subscribing.
It would be a very useful feature in many cases. For example, in downloads, if I don't want others to use the direct links to the files, or if I don't want to let people to know where the files come from. In statistics, it is also a good feature.
#5
Where did this issue land? Interested for stats.
#6
im not a coder but maybe some1 can create a theme_function or something to make the url for example: mysite.com/outside?=the_linkfield_id
and take the id of the field in the url and find this way the url of the field
but this will only work with single value link fields
#7
maybe this can be done by integrating it with http://drupal.org/project/shorturl
it is like tinyurl but in drupal and maybe everytime u create a link field it creates a short_url too and displays the short_url
link of the issue in shorturl_issues http://drupal.org/node/608810
#8
In addition to this, It would be great to be able per link to switch between showing the node, a tokenized message or redirecting to the link itself!
greetings,
Martijn