Hello,
You could use this event Navigating in WebView to resolve your issue.
Sample:
<WebView x:Name="webview" Navigating="webview_Navigating">
Important: For using Navigating, you need to delete
target="_blank"
in your <a> lable.
Next, we need to make the app to respond to URLs on websites. In fact, we could use App-link to implement this function effectively.
On Android, we could use App-link to let Android raise a disambiguation dialog to ask a user what application to select the application.
On iOS, we could use Universal Links for launching the apps.
You could refer to the following documentation for more details:
- Handling Android App Links.
- Support Universal Links.
- Enable apps for websites using app URI handlers.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.