External link problem

Hi. I have used “external” class some days ago in my project. It had worked fine. I’m about to complete my project but the external links not work. There is no action, no error. I have tried target options (_system, _blank) and cordova’s inappbrowser plugin but result is nothing. Neither of them work.

<div class="page-content">
            <a class="link external" href="http://www.yanbakkal.com" target="_system">Open Google</a>
</div>

I dont’t know what is the matter. Anybody help?

1 Like

Hi, I cannot help you but I noticed one thing, shouldn’t you refer to https ?
(https://www.yanbakkal.com seems to have a certificate)

Thanks for reply. I tried ‘https’ but nothing is changed.
Is there any relationship between external link and (whitelist or CSP) ?
Maybe is there any conflict between plugins?

8.1.2 ([email protected])
android 7.1.3
browser 4.1.0
ios 4.5.5

cordova-plugin-camera 4.0.3 “Camera”
cordova-plugin-device 2.0.2 “Device”
cordova-plugin-dialogs 2.0.1 “Notification”
cordova-plugin-firebase-messaging 1.2.0 “FirebaseMessagingPlugin”
cordova-plugin-geolocation 4.0.1 “Geolocation”
cordova-plugin-googlemaps 2.4.6 “cordova-plugin-googlemaps”
cordova-plugin-inappbrowser 3.0.0 “InAppBrowser”
cordova-plugin-network-information 2.0.1 “Network Information”
cordova-plugin-request-location-accuracy 2.2.3 “Request Location Accuracy”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-statusbar 2.4.2 “StatusBar”
cordova-plugin-whitelist 1.3.3 “Whitelist”
cordova-support-android-plugin 1.0.1 “cordova-support-android-plugin”
cordova-support-google-services 1.2.1 “cordova-support-google-services”
cordova.plugins.diagnostic 4.0.10 “Diagnostic”

My solution is to upgrade android sdk

Make sure you have following in config.xml:

<allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <allow-navigation href="*" />
1 Like

Config.xml

<access origin="http://www.yanbakkal.com" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-navigation href="http://www.yanbakkal.com" />
<allow-navigation href="*.googleapis.com" />
<allow-navigation href="*.gstatic.com" />
<allow-navigation href="*://maps.google.com/maps" />
<allow-navigation href="*://www.google.com/maps" />
<allow-intent href="http://*/*" launch-external="yes" />
<allow-intent href="https://*/*" launch-external="yes" />

My solution is removing android platform and then adding again