J-BusinessDirectory - Website link error

Support Forum

 
 

 

Hi,

The website link for businesses gives an error page when I click it. Instead of going to the company website, the link for which is in the business details, the link goes to:

mydomain.com/www.businessdomain.com. (mydomain.com being my website)

The entry in the company details' website field is www.businessdomain.com.

Any ideas please?

Many thanks!

3 replies

Hi,

 

The link requires an http:// before www.

Usually this is added automatically if it's missing.

In {joomla}/components/com_jbusinessdirectory/controller/managecompany.php in save function you should have something like:

if(isset($post['website']) && strlen($post['website'])>1){
            if (!preg_match("~^(?:f|ht)tps?://~i", $post['website'])) {
                $post['website'] = "http://" . $post['website'];
            }
        }

Thanks!

It's strange though but that's exactly what I have in the file.

If it helps, this happened after I imported a few hundred records. Not sure if that's connected in any way.

Thanks a lot.

Hi,

 

If you imported the business listing then you must make sure that website address is your csv file has http:// in front.

 
 
 

4 Item(s)

Show per page