Google map external link with Cordova inappbrowser

Hi, I’m trying to open external links in google map with Cordova inappbrowser.

I’ve tried with this jQuery way.
$(document).on(“click”, “a[href^=http], a[href^=https]”, function(e) {
var this = (this);
var target = $“inAppBrowser”) || “_blank”;$this.attr(“href”), target, “location=no”);

However, I found that it cannot deal with every case.
It works when I click Google trade mark but not works with the link ‘View on Google maps’.

Has anyone gone through this problem?

Thanks in advance.