How can I prevent WebView2 from capturing an intermediate Google search URL in the navigation history? #4815
Unanswered
timepasser00
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's the scenario: A user searches for "Microsoft" on Google, clicks on the link to the Microsoft page, and I detect that it's going to the Microsoft URL. I cancel the navigation to prevent it from loading. However, this leaves the WebView2 on a blank page, and the intermediate Google search URL gets recorded in the history. Interestingly, if I don't cancel the navigation, this intermediate URL doesn't get recorded, and the isRedirected property for the URL is set to false.
Is there a way to either prevent WebView2 from capturing the intermediate URL or detect the final destination URL (in this case, Microsoft.com) before completing the navigation?
Beta Was this translation helpful? Give feedback.
All reactions