Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I've set up an embedded google map in my VF page that displays all records within x km. I've added info windows to each of these, with the aim that the user can click on the link in the infowindow and it'll redirect them to that records detail page. I'm using:

var infoWindow = new google.maps.InfoWindow({
            content: '<div style="font-size: 8pt;">' + '<b>' + siteName + '</b>' + '</br>' + status + '</br><a href="' + siteLink + '">Load Site</a>'

where siteLink is the id of the clicked marker. However, this redirects me to:


rather than:


and so gives me an error. Any ideas how to get round this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Did you try "/siteName" (a leading slash)? That would usually get a link to the root URL, ignoring the /apex path.

share|improve this answer
straightforward... thanks. –  paul Jan 4 '13 at 9:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.