Skip to content

webview: Allow opening some links in the user's native browser #83

@straygar

Description

@straygar

By default, all links you click in your webview load in the same window. However, in some cases I want to open the linked page in the user's native browser, rather than my app.

Not sure what the implementation would look like. It could be either

  • based on some rule (e.g. "load links in the same hostname in the webview, others - native browser")
  • by exposing an "onNavigation()" hook that can let me choose when to do block the webview navigation and open the native browser instead.
  • putting the burden on the embedded page - e.g. add some special prop to the <a> tags, or assume that any <a target="_blank"> should open in the native browser

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