Skip to content

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

@markmarijnissen

Description

@markmarijnissen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions