当UWP使用Launcher.LaunchUriAsync导航到MS时,搜索引擎请求会自动添加。
我使用Launcher.LaunchUriAsync将地址传递给Windows浏览器。
string uriToLaunch = @"https://proxy.intu-soft.com/?server=google!%*qs=test";
uri = new Uri(uriToLaunch);
await Windows.System.Launcher.LaunchUriAsync(uri);它移动到"https://www.google.com/search?q=https%3A%2F%2Fproxy.intu-soft.com%2F%3Fserver%3Dgoogle!%25*qs%3Dtest&ie=&oe=“,而不是"https://proxy.intu-soft.com/?server=google!%*qs=test”仅在边缘。
发布于 2019-09-02 07:38:14
我注意到您的Url最终指向的地址是
https://patents.google.com/?q=test&oq=test您可以直接使用这个Url启动。
URL跳转成为搜索引擎搜索,这意味着边缘浏览器无法将您的链接识别为普通的http(s)链接,这可能是由于链接中存在异常字符造成的。
尽管在地址栏中输入该链接时可以识别它,但它将通过跳转。当通过Launcher启动时,浏览器将首先确定链接。如果不符合要求,浏览器将不会将其视为链接。
这就是不同浏览器的不同处理方式。这不是Launcher的问题。
诚挚的问候。
https://stackoverflow.com/questions/57736358
复制相似问题