Skip to content

inappbrowser with usewkwebview not open the links with <a href=.. target=_blank> #417

@mosabab

Description

@mosabab

My app using inappbrowser to open external link and work fine, and the page with that link has more links inside,
After apple change the webview, I try to use usewkwebview=yes in options, but there is a bug in the inappbrowser for links that opened as new tab:
e.g.: <a href= target="_blank">

Inappbrowser will not open any links with target=_blank.

So, if the user click on that link, it will not show anything, just like there is no any links.

This happened just for links with <a href= target="_blank">

So, any website has links with target blank, will not open in inappbrowser if the option usewkwebview is set to yes.
<a href= target="_blank"> // in html for links
(this mean for browser : to open the link in new tab, but for inappbroswer, it should open in the same window.).

I try to open many websites that have some links to open in new tab (with target=_blank) via inappbrowser, but nothing happened.

Apple change the webview and inappbrowser without usewkwebview=yes will not work for ios devices, so any websites has <a href with target=_blank will not open.

Inappbrowser before i set wkwebview to yes was work fine, but after apple change the webview, some websites not work, so i set to use wkwebview to yes and work fine except any links with target = _blank.

Please solve this issue as soon as possible.

Please note that i am using the master version of cordova inappbrowser plugin to test my app.

@dpa99c
@timbru31
@janpio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions