SharePoint "Send To > Email a Link" Fix
In SharePoint 2007 Document Library, the Send To > Email a Link context menu will open your local email client and put the link of that document in the email body. But somehow the URL encodes the whole URL, instead of just the relative path. So the URL will end up like this:
http://sharepoint%2Exyz%2Ecom/devacct/Shared%20Documents/JDE%20-%20Timberline%20Conversion/JDE%20Standard%20Reporting%20Details.pdf
Basically, the dot(.) in the domain name is also URL encoded(%2E).
It is not clickable link even though if we copy it to IE, it will still work.
The link should be
http://sharepoint.xyz.com/devacct/Shared%20Documents/JDE%20-%20Timberline%20Conversion/JDE%20Standard%20Reporting%20Details.pdf
In order to fix this. You need to locate CORE.js in
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033
Make a backup copy of this file before you make any changes!
Find this line:
fileUrl=escapeProperly(httpRootWithSlash.substr(0, slashLoc))+currentItemUrl;
and replace it with this:
fileUrl=httpRootWithSlash.substr(0, slashLoc)+currentItemUrl;
You need to do the same on all the SharePoint frontend servers and SharePoint Application server.
After you done modifying the CORE.js file, you will need to do IISRESET on all the above servers.
Once all done, please verify the “Send To> Email a Link” function works the way it should!
Thanks Calvin998 for posting the Send To > Email a Link Fix