I am trying to navigate to respective record's detail page for a recordid when I click on Google Maps marker from JavaScript, but it doesn't work. Am I missing anything?

Below is the code.

google.maps.event.addListener(marker, 'click', function() {
    window.location = 'https://na15.salesforce.com/'+addrInstances[i].id;
  • So what is your question?
    – Yaakov Ellis
    Feb 12 '14 at 13:50
  • Sorry.. My question is somehow I couldnt go to respective record's detail page.. Am I missing anything..?
    – Arun SFDC
    Feb 12 '14 at 14:49

I am not sure what you are trying to do, but for navigation you can just use window.location='/'+id.

For salesforce1 have a look (Mobile navigation).


  • Thanks.I am not doing on Salesforce1 or mobile..
    – Arun SFDC
    Feb 13 '14 at 5:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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