Skip to content

Blank target links no longer works on iOS 18 in BlazorWebView #25602

@MoienTajik

Description

@MoienTajik

Description

If you have a MAUI Blazor application and have an a tag in your component, like this:

<a href="https://google.com" target="_blank">Test</a>

Clicking on the a tag with _blank target on iOS 18 causes following error:

[Application] BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(_:) needs to migrate to the non-deprecated UIApplication.open(_:options:completionHandler:). Force returning false (NO).

This works fine on iOS 17.5.

Steps to Reproduce

  1. Create a new MAUI Blazor Hybrid App
  2. Put a link with blank target in one of your Blazor components, like this:
<a href="https://google.com" target="_blank">Test</a>
  1. Run the app and try to click on the link

Version with bug

8.0.92 SR9.2

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

8.0.92 SR9.2

Affected platforms

iOS

Affected platform versions

iOS 18

Relevant log output

[Application] BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(_:) needs to migrate to the non-deprecated UIApplication.open(_:options:completionHandler:). Force returning false (NO).

Metadata

Metadata

Assignees

Labels

area-blazorBlazor Hybrid / Desktop, BlazorWebViewplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions