If you  ever face this problem, coz I did, there’s a small fix here.

Problem:
If you send a link to a friend using the K2 send to friend link (EMAIL), it sends an incomplete url.

Fix I used:
I went into mailto component controller (/components/com_mailto/controller.php). Around line 64 where it has
$SiteName     = $mainframe->getCfg('sitename');
I added : $SiteUrl    = JURI::current();
and in line 70 where it has
$link= base64_decode( JRequest::getVar( 'link', '', 'post', 'base64' ) );
I changed it to
$link = $SiteUrl.base64_decode( JRequest::getVar( 'link', '', 'post', 'base64' ) );

Explanation:
Simple, the url that was being sent was not including the base URL. So calling JURI::current(); is simply getting the base url and then including it in the $link variable.

I hope this helps someone out there.

Bookmark and Share