I have an application that uses a local html file to show the help documentation. When navigating to default.htm, an ID parameter can be added like this: file:///C:/help/default.htm#cshid=50001. It'll then navigate to the correct page, instead of the default page. Here is an example of the code I used:
Dim ID = 50001 Dim uri = New Uri("C:/help/default.htm") If Not String.IsNullOrWhiteSpace(ID) Then uri = New Uri(String.Format("{0}#cshid={1}", uri.ToString, ID)) Dim defaultBrowserPath = GetDefaultBrowserPath() 'Pretend that Edge is our default browser Process.Start(defaultBrowserPath, uri.AbsoluteUri)
The URL gets opened fine on Internet Explorer 11, Google Chrome, FireFox, Operak, except Microsoft Edge. The parameters dissapear when the URL is opened in Microsoft Edge, thus the javascript of going to the right page is never executed.
How can we add support to parameters in local file URL's, to Microsoft Edge?