Not work when path contains hash charactor
Hi, sorry for poor English.
WebView2 doesn't seem to work when path to exe file contains hash charactor(#). Like 'C:\C#\Projects'.
Is this bug? Or expected behavior? Thank you.
using Microsoft.Web.WebView2 1.0.961.33
Edit: Sorry. I forgot to write some important information. I'm using WebView2 for WPF application on .net framework on Windows. Thank you.
Hey @gh615 - thanks for using WebView2! In an url the # is the reserved fragment character. To use it in your path you need to percent-encode it: %23. Let me know if that doesn't work for you!
Thank you for your reply, and sorry for late response.
Excuse me. I didn't quite understand what you meant. I'm sorry if I'm misunderstanding.
I didn't mention about URL loaded by WebView2. I meant location that the application exe file reside.
For example. When the app that is using WebView2 is located in 'C:\CS\Projects\wpfapp.exe', webview2(inside the app) seems to work properly (It can load page perfectly.), but when the app is moved to 'C:\C#\Projects\wpfapp.exe'(probably because of # charactor), webview2(inside the app) doesn't seem to work.(It shows nothing)
I don't know whether bug or specification.
Thank you.
Does it make sense? Sorry for poor English. If it doesn't make sense, please don't hesitate to ask.
Ah, sorry I misunderstood - thanks for clarifying!
I'll open a bug for this. Thanks!