Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
-
Android — any
Cordova — 6.5.0
Description
I use Angular with Cordova. Angular uses URL routing, e.g. `/login` for the Login page, '/settings' for the Settings page, etc.
When Android application updates (when new application version is installed) Cordova is like «reloads» itself or something, but the path in the address bar was `/login` or `/users` or `/settings` etc., so, Cordova thinks it is a folder.
Cordova throws an error — see screenshot #1 — there is a path `/www/login` but the `/login` is just Angular's routing, not a folder to search for
I also tried to make Angular work with hashbang url strategy, e.g. `/#/login` rather than `/login` — it throws another error, see screenshot #2.
So, basically Cordova behaves like a server without the `mod_rewrite` option — it tries to find folders inside the `/www` folder.