You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2013/06/08 00:34:20 UTC

[jira] [Commented] (CB-3005) Argument not supported if the start page URL contains argument

    [ https://issues.apache.org/jira/browse/CB-3005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13678519#comment-13678519 ] 

Shazron Abdullah commented on CB-3005:
--------------------------------------

Please provide a working example. fileURLWithPath is the correct method to use in this case because we are loading a local URL.

In any case this would be the way to do it: http://stackoverflow.com/questions/11882501/nsurl-add-parameters-to-fileurlwithpath-method
But, can be error prone since we need to extract the query params out, and then add it back in.
                
> Argument not supported if the start page URL contains argument
> --------------------------------------------------------------
>
>                 Key: CB-3005
>                 URL: https://issues.apache.org/jira/browse/CB-3005
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.5.0
>            Reporter: Olivier Goguel
>            Assignee: Shazron Abdullah
>
> If the startPage contains arguments (ex: index.html?env=prod), Cordova displays "not found error", while it is a properly formatted URL.
> Tentative Fix: use relativeToURL instead of fileURLWithPath in viewDidLoad/CDDViewController.h

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira