C# Webbrowser remove dots fron url
I have a C# WebBrowser object in my app, but when I make it navigate to a url containing a dot开发者_如何学JAVA somewhere in the path it just removes the dot.. For example: if I tell it to navigate to this url: http://example.com/hello-./page.html It will navigate to this: url: http://example.com/hello-/page.html
This behavior is because of a known issue with the System.Uri
class. I'm not aware of a workaround in code, which means you'll need to point to a different URL (maybe one which redirects to your desired URL?), one which doesn't have a .
before the /
.
精彩评论