WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

Not work when path contains hash charactor

Open gh615 opened this issue 4 years ago • 3 comments

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.

AB#36595786

gh615 avatar Sep 24 '21 14:09 gh615

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!

champnic avatar Sep 28 '21 03:09 champnic

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.

gh615 avatar Oct 03 '21 17:10 gh615

Ah, sorry I misunderstood - thanks for clarifying!

I'll open a bug for this. Thanks!

champnic avatar Oct 04 '21 18:10 champnic