You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Håkon Nilsen (JIRA)" <ji...@apache.org> on 2016/10/04 07:39:20 UTC

[jira] [Created] (CB-11949) target="_blank" for links within whitelist doesn't open

Håkon Nilsen created CB-11949:
---------------------------------

             Summary: target="_blank" for links within whitelist doesn't open
                 Key: CB-11949
                 URL: https://issues.apache.org/jira/browse/CB-11949
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaLib, iOS
    Affects Versions: 4.2.0
            Reporter: Håkon Nilsen


Links with target="_blank" will not open for URL's that are in whitelist. I.e. with these settings in config.xml:

<allow-navigation href="https://*.apache.org" />
<allow-intent href="https://*" />

And HTML:
<a href="http://www.apache.org" target="_blank">Test link</a>

Will not open. This ends up in CDVIntentAndNavigationFilter.m in shouldOverrideLoadWithRequest which simply returns YES. It should, however, open these cases as the case for "CDVIntentAndNavigationFilterValueIntentAllowed".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org