function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rakshana Cube84Rakshana Cube84 

Google Map Infowindow issue

Hi All,

I have developed a visualforce page which displays salesforce custom object records in the google map (which embedded by Javascript) as markers. I wrote the infowindow code for popping the infowindow with few field values and wrote a HTML button in the infowindow to redirect to the corresponding record. 

But the issue is : When I login Salesforce app in my mobile and click on the button is not redirecting to the record properly in the app as we have HTML button with href="/"+recordID. I hope it must be : URLFOR with the apex:commandbutton. It's not possible in javascript. Please help me with a workaround to solve this problem.
Screenshot - Link (https://www.screencast.com/t/cYFyblHVcEE)
Thanks in advance!