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)
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

http://www.hotukdeals.com/

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

quicksketch - September 6, 2008 - 22:03

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

JoeMcGuire - January 17, 2009 - 13:02
Category:support request» feature request
Status:active» postponed (maintainer needs more info)

Is the the purpose of this to gather statistics on how many times a Link has been clicked?

#3

faunapolis - April 14, 2009 - 06:23

Subscribing, I am looking for a way to mask external links as well. Very useful if you have affiliate marketing outgoing links.

#4

searosin - April 29, 2009 - 10:25

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

jorge - October 8, 2009 - 17:26

Where did this issue land? Interested for stats.

#6

ddorian - October 16, 2009 - 14:11

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

ddorian - October 21, 2009 - 14:24

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

Summit - November 18, 2009 - 10:56

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

 
 

Drupal is a registered trademark of Dries Buytaert.