phonegap cli - cordova.js not loading in iOS simulator - file:///cordova.js Failed to load resource: The requested URL was not found on this server -


i have 2 projects - demo project , actual project. in demo project, cordova.js (and rest of js , css) load correctly. in actual project, links js , css improperly formatted.

in demo project, link cordova.js looks (from safari inspector): enter image description here

in actual & broken project, looks like:

enter image description here

i've been searching , can't tell difference between projects. why second project using wrong reference files?

are perhaps using angular , have <base href="/"> in index.html file?

if need remove , go url hashing way. angular 2 adding { usehash: true } in routing module. see https://angular.io/docs/ts/latest/guide/router.html#!#browser-url-styles how-to , explanation.

with angular 1 configure location provider. see https://docs.angularjs.org/guide/$location#hashbang-and-html5-modes explanation , how-to.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -