cordova-plugin-ionic-webview
cordova-plugin-ionic-webview copied to clipboard
Feature request: Support backslashes in paths
In our app we allow playing SCORM packages in an iframe (they are self-contained packages with HTML, CSS, JS and resources). We recently found that some of these packages build relative paths using backslashes () instead of forward slashes (/), and those resources don't load when using this plugin. The user who reported it says that it used to work before we migrated to this plugin (we used UIWebView before).
So in our app we have an iframe pointing to a local file (the iframe URL has been converted using convertFileSrc and it works fine). Inside this iframe there are some images with a path like:
data/intr5\images\img-c3d1769571f4443a942d3ec26ff45d166f309a98.png
And that image won't load, the console displays a 404 error. I'm not sure if the limitation is caused by this plugin or by WKWebView itself, but that same package works fine in Safari for iOS.
I already told the user that he should fix the path, but it would be great if this plugin also supported backslashes, most browsers do :)