link not working

Permalink
hi

one of my links is not working on this sitehttp://www.coffsweb.com.au/physio/... its the "book now" button. it should go towww.www.firstchoicemedia.com.au... but adds this bit in fronthttp://www.coffsweb.com.au/physio/...

Ive tried to clear chache

johnkidd
 
madeforspace replied on at Permalink Reply
madeforspace
Hi John

Your link is currently set tohttp://www.coffsweb.com.au/physio/www.firstchoicemedia.com.au... for that button.
You should just be able to edit the link to where you want it to go.

Hope that helps

Alex

Edit: Sorry just noticed that is what you were saying anyway.
How are you setting the link for the button? Are you adding it via a content block or another method?
johnkidd replied on at Permalink Reply
johnkidd
Hi Alex thanks for the reply.
Ive tried both coding it in myself and also tried with a image block and simply adding a link but does not work.

The source code says this on line 117:

<div id="booking-button"><a href="www.firstchoicemedia.com.au"><img border="0" class="ccm-image-block" alt="Online Booking" src="/physio/files/2913/9340/5922/book-now-button.jpg" width="87" height="30" /></a></div>

as you can see it should be going to that link. Very strange!
madeforspace replied on at Permalink Reply 1 Attachment
madeforspace
This is a real head scratcher.

When I inspect the element for the button it shows me that the image is linked to firstchoice but the link properties also show a base URI of coffsweb - over on the right. See screen grab.

My thought now is that you may have a base URL set in you config/site.php and that is forcing its way into your link.
drbiskit replied on at Permalink Best Answer Reply
drbiskit
You just need to add 'http://' to the start of the link. Because it isn't there currently, it thinks it's an 'in-site' link, and adds the base url in at the start.
johnkidd replied on at Permalink Reply
johnkidd
great that worked!
madeforspace replied on at Permalink Reply
madeforspace
Good call drbiskit, best answer me thinks ;)
drbiskit replied on at Permalink Reply
drbiskit
Good stuff!

=0)