Ionic - integrating google maps

I have integrated google map and it has multiple markers. On infowindow we have option of get directions where I am getting the lat long for that particular location and onclick it will take you to another map to show you the direction. I am pasing my lat and long values in following url “” + mylat + “+” + mylng

Here I am getting the exact location but I am not able to go back when I click on the back button of the phone. It works fine in the browser. Kindly help