Hi,
you have upgrade your forum and I can't see your reply in the previous post so I open this. Our previous conversation was:
"I'm trying to integrate komento with a component called guru.
It's working fine except the permalinks in notifications emails and jomsocial stream (in the comment forms permalinks are ok)
With k2 integration all works fine, so maybe I've have made something wrong.
The right contentPermalink is:
http://www.guitarraenunclic.com/index.php?option=com_guru&view=gurutasks&catid=2&module=5-introduccion&cid=9-que-voy-a-aprender-en-este-curso&Itemid=102
and the right commentPermalink is for example:
http://www.guitarraenunclic.com/index.php?option=com_guru&view=gurutasks&catid=2&module=5-introduccion&cid=9-que-voy-a-aprender-en-este-curso&Itemid=102#kmt-12
But in the notifications emails the urls are:
http://index.php/?option=com_guru&view=gurutasks&catid=&module=0-&cid=9-que-voy-a-aprender-en-este-curso&Itemid=102
http://index.php/?option=com_guru&view=gurutasks&catid=&module=0-&cid=9-que-voy-a-aprender-en-este-curso&Itemid=102#kmt-12
without the domain and losing data...so 'server not found...'
And in Jomsocial activity stream (
http://www.guitarraenunclic.com/index.php?option=com_community&view=frontpage&Itemid=775 )
the urls are:
http://www.guitarraenunclic.com/index.php?option=com_guru&view=gurutasks&catid=&module=0-&cid=9-que-voy-a-aprender-en-este-curso&Itemid=0
http://www.guitarraenunclic.com/index.php?option=com_guru&view=gurutasks&catid=&module=0-&cid=9-que-voy-a-aprender-en-este-curso&Itemid=0#kmt-3
Have you got any ideas?
Thanks
Jesus"
Your reply :
Hi,
Perhaps you've missed out $this->prepareLink() function call? This function is crucial to JRoute the link properly.
Also, maybe you can upload your plugin file and I will give it a check and see what is wrong?
My new post:
Hi Jason,
I've included $this->_item->permalink_field = $this->prepareLink( $this->_item->permalink_field ); in the plugin file com_guru.php but I've got still the same issue.
Before the call to function prepareLink the value of this->_item->permalink_field is:
index.php?option=com_guru&view=gurutasks&catid=2&module=5-introduccion&cid=9-que-voy-a-aprender-en-este-curso&Itemid=102
After the call to prepareLink the value of this->_item->permalink_field is:
http://www.guitarraenunclic.com/index.php?option=com_guru&view=gurutasks&catid=2&module=5-introduccion&cid=9-que-voy-a-aprender-en-este-curso&Itemid=102
that's right but in the email and in jomsocial the link is still:
http://www.guitarraenunclic.com/index.php?option=com_guru&view=gurutasks&catid=&module=0-&cid=9-que-voy-a-aprender-en-este-curso&Itemid=102
I've attached the plugin file for you to check
Thanks
Jesus