Open link in default browser instead of webview2 #4003
Unanswered
Komas19-new
asked this question in
Q&A
Replies: 2 comments
-
Hello @Komas19-new, Thanks for your inquiry! I've assigned this to a dev that might best answer your question. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can handle NavigationStarting event, check the url to decide whether you want to launch in browser. When decided to launch in browser, then cancel the navigation and call OS API to launch the url in default browser. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, i have an win form app, that uses webview2, and i have the url of my website, in source in the properties of webview21, and inside my website, there is an buy button, that opens an new tab, but it opens in webview2, instead of inside the default browser. I want it to be like that since it redirect you to another website, not owned by me, that requires you to login, that would be annoying to relogin, while the default browser is already logged in.
Beta Was this translation helpful? Give feedback.
All reactions