I found a bug that was summited for this error a while ago... but now I can't find the bug report.


Does the new open tooling solve this problem?


I have a javascript file that I need to load but it is not within my app but it is on the same server.

If i set remote to true sencha cmd adds a trailing slash to the URL

this will try to load /static/api/Api.js/ and of course it gets a 404

from the app.json file:

Code:
"js": [
        {
            "path": "app.js",
            "bundle": true
        },
        {
//            /**
//             * Ext.Direct API URL: if the app runs inside Cordova, you will need to change
//             * the path to the absolute endpoint (e.g. https://192.168.1.2:3000/api/).
//             */
//   
             "path": "/static/api/Api.js",
             "remote": true
        }

if I include the host name on the URL it works fine. But I don't always know the hostname.


Code:
"js": [
        {
            "path": "app.js",
            "bundle": true
        },
        {
//            /**
//             * Ext.Direct API URL: if the app runs inside Cordova, you will need to change
//             * the path to the absolute endpoint (e.g. https://192.168.1.2:3000/api/).
//             */
//   
             "path": "https://testweb1.example.com/static/api/Api.js",
             "remote": true
        }