Corrupt files - copied files are 'index.html' (when location.href contains `#/`)
markmarijnissen opened this issue · 1 comments
markmarijnissen commented
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.
markmarijnissen commented
@lylepratt - I suspect this was the strange issue you mentioned earlier somewhere else.