You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Arthur Mudrick (JIRA)" <ji...@apache.org> on 2018/03/06 06:37:00 UTC
[jira] [Commented] (CB-13943) ERR_FILE_NOT_FOUND — deep linking issue
[ https://issues.apache.org/jira/browse/CB-13943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16387356#comment-16387356 ]
Arthur Mudrick commented on CB-13943:
-------------------------------------
Well, no, this is Cordova issue — those screenshots with alerts are from Cordova, not Angular — Angular is even not started at that moment. This is Cordova who tries to find `/login` folder and throws an error.
> ERR_FILE_NOT_FOUND — deep linking issue
> ---------------------------------------
>
> Key: CB-13943
> URL: https://issues.apache.org/jira/browse/CB-13943
> Project: Apache Cordova
> Issue Type: Bug
> Environment: Android — any
> Cordova — 6.5.0
> Reporter: Arthur Mudrick
> Priority: Major
> Attachments: Screenshot_2018-02-28-15-18-50-964_ru.balumates.balu.png, Screenshot_2018-02-28-15-55-56-348_ru.balumates.balu.png
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org