Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 19032200CCA for ; Wed, 19 Jul 2017 19:17:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 17508169708; Wed, 19 Jul 2017 17:17:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5E0C5169707 for ; Wed, 19 Jul 2017 19:17:13 +0200 (CEST) Received: (qmail 53370 invoked by uid 500); 19 Jul 2017 17:17:12 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 53359 invoked by uid 99); 19 Jul 2017 17:17:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jul 2017 17:17:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E84F2C2CF1 for ; Wed, 19 Jul 2017 17:17:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.2 X-Spam-Level: X-Spam-Status: No, score=-99.2 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id ItAuVa7bBlYy for ; Wed, 19 Jul 2017 17:17:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 0E51A5FD9C for ; Wed, 19 Jul 2017 17:17:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5149FE06AB for ; Wed, 19 Jul 2017 17:17:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0A68321EA3 for ; Wed, 19 Jul 2017 17:17:00 +0000 (UTC) Date: Wed, 19 Jul 2017 17:17:00 +0000 (UTC) From: "Peter (Somogyvari) Metz (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-11419) Configurable Path For config.xml Fetching In Browser Platform MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Jul 2017 17:17:14 -0000 [ https://issues.apache.org/jira/browse/CB-11419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16093438#comment-16093438 ] Peter (Somogyvari) Metz commented on CB-11419: ---------------------------------------------- [~filmaj] That too, but the proposed enhancement here has become necessary when deploying the application on a web server under a path different from the domain root (e.g. www.fakedomain.com/myapplication/. I figured it would be awesome to have the exact same codebase produce working web + hybrid applications with the same cool splash screens. > Configurable Path For config.xml Fetching In Browser Platform > ------------------------------------------------------------- > > Key: CB-11419 > URL: https://issues.apache.org/jira/browse/CB-11419 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-browser > Affects Versions: 4.1.0, 4.2.0 > Environment: Chrome on OS X > Reporter: Peter (Somogyvari) Metz > Labels: features > > 1. Create cordova dummy project > 2. Add browser platform > 3. Serve the www dir on anything than the root path of your host, e.g. http://localhost:3000/admin > 4. Load the application in Chrome (or any browser I assume) > Cordova tries to load /config.xml which fails with HTTP 404: > cordova.js:846 [Browser][cordova.js][xhrStatusChangeHandler] Could not XHR config.xml: Not Found > I've seen these but none them seem to provide enough flexibility to support my case and what others have already raised: > https://issues.apache.org/jira/browse/CB-11274 > https://github.com/apache/cordova-browser/pull/24/commits/8dfd1c7b03b3fb6215888a6d3b1d16ab5c9f316e > I could send a pull that would examine the global scope for the existence of a getCordovaConfigXmlPath() method and use the return value if present, but hopefully someone can offer something that doesn't rely on the global context to work. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org