×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Wrong address in email notification

Wrong address in email notification 12 years 5 months ago #16450

  • Samuele Bonzio
  • Samuele Bonzio's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 22
  • Thank you received: 0
Hello, I found a Bug in 2.0.5 Pro (stable)
My site, for the moment, is under a subdomain (because in not public and we are testing it).
example: www.mydomain.com/html/

In the email notification, when a person add a new spot, there is the subdomain twice in url.

example of url in the email :
www.mydomain.com /html//html/hotspots/new_hotspot/156.html

there is twice html and twice double slash between "html//html".

This error appear when the option "Autopublish frontend added markers" is set in "YES".
When in that option I set "NO" the link change in:

www.mydomain.com/html/

without the link to the new hotspot

I hope you can understand my horryble english...

Have a nice day!
Samuele

Re: Wrong address in email notification 12 years 5 months ago #16456

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Samuele!
I don't have a working test site with 2.0.5 so that is why I'll need your help to fix this issue.
Go to com_hotspots/controllers/hotspots.php

on line 228 you have this code:
$url = JURI::root().JRoute::_('index.php?option=com_hotspots&view=hotspot&id='.$row->id);

change it to this:
$url = JURI::base().JRoute::_('index.php?option=com_hotspots&view=hotspot&id='.$row->id);

Test it and if it works, leave it like that. If it doesn't work change it like this:
$url = JRoute::_(JURI::root().'index.php?option=com_hotspots&view=hotspot&id='.$row->id);

The second option should work in any case, but it will disable the sef urls...
Let me know how it goes!

Daniel
  • Page:
  • 1
Time to create page: 0.135 seconds