Given:
var BUNDLE_ROOT = location.href.substr(0,location.href.lastIndexOf('/')+1);
and
location.href === 'file://android_assets/www/index.html#/hash/navigation/'
Then:
- The BUNDLE_ROOT url becomes
file://android_assets/www/index.html#/
- File to be copied are downloaded from
file://android_assets/www/index.html#/myfile.jpg.
So, all copied file contain the contents "index.html" if and only if your location contains #/ when downloading.
This bug only affects Android and is fixed in next release.