Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupt files - copied files are 'index.html' (when location.href contains #/) #15

Closed
markmarijnissen opened this issue Jan 9, 2015 · 1 comment

Comments

@markmarijnissen
Copy link
Owner

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 markmarijnissen changed the title Corrupt files - copied files are 'index.html' (when location.href contains #/f) Corrupt files - copied files are 'index.html' (when location.href contains #/) Jan 9, 2015
@markmarijnissen
Copy link
Owner Author

@lylepratt - I suspect this was the strange issue you mentioned earlier somewhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant