You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set the D:\Work\Report\TPL\NKK#7555\PDFViewer1.pdf path when I call WebView2's Navigate method, the PDF file fails to open because the folder name in the path contains a "#".
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
121.0.2277.128
SDK Version
1.0.2210.55
Framework
Win32
Operating System
Windows 10
OS Version
19045.4651
Repro steps
Set the local path to "D:\Work\Report\TPL\ nkk# 7555\ pdfviewer.pdf" and prefix it with "file://".
Calling the Navigate method of WebView2 failed to open the PDF.
After some debugging, WebView2's Navigate method splits the path according to '#", If the "D:\Work\Report\TPL\NKK" path exists, the "NKK" file or folder is opened, but if the path does not exist, an error is reported that the file was not found
Repros in Edge Browser
Yes, issue can be reproduced in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
@lh0328 Looks like # character in the file path is being interpreted as a fragment identifier by the WebView2 Navigate method. To resolve this, you can encode the # character in the file path.
Try this
file://D:/Work/Report/TPL/nkk%237555/pdfviewer.pdf
Try using this encoded path with the Navigate method in WebView2. This should prevent the method from splitting the path incorrectly. Let me know if this works for you!
What happened?
If I set the D:\Work\Report\TPL\NKK#7555\PDFViewer1.pdf path when I call WebView2's Navigate method, the PDF file fails to open because the folder name in the path contains a "#".
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
121.0.2277.128
SDK Version
1.0.2210.55
Framework
Win32
Operating System
Windows 10
OS Version
19045.4651
Repro steps
Set the local path to "D:\Work\Report\TPL\ nkk# 7555\ pdfviewer.pdf" and prefix it with "file://".
Calling the Navigate method of WebView2 failed to open the PDF.
After some debugging, WebView2's Navigate method splits the path according to '#", If the "D:\Work\Report\TPL\NKK" path exists, the "NKK" file or folder is opened, but if the path does not exist, an error is reported that the file was not found
Repros in Edge Browser
Yes, issue can be reproduced in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: