Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11949

target="_blank" for links within whitelist doesn't open

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 4.2.0
    • None
    • cordova-ios
    • None

    Description

      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="https://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".

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            hnilsen HÃ¥kon Nilsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: