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

ASF subversion and git services commented on CB-6007:
-----------------------------------------------------

Commit 799eed5f90a2e332d9f90257a7b4faf29ddcebe3 in branch refs/heads/master 
from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;h=799eed5 ]

CB-6007 Fix findCordovaPath() not working when path contains a query param


> If cordova.js is referenced using cache bust the plugin path is derived 
> incorrectly.
> ------------------------------------------------------------------------------------
>
>                 Key: CB-6007
>                 URL: https://issues.apache.org/jira/browse/CB-6007
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 3.3.0
>            Reporter: Rik Schennink
>            Assignee: Andrew Grieve
>             Fix For: 3.5.0
>
>
> The path below functions correctly.
> "vendor/apache/ios/cordova.js" -> "vendor/apache/ios"
> The following path returns 'null'.
> "vendor/apache/ios/cordova.js?bust=v1.1"
> Problem is located in 'findCordovaPath()' line '1369'. Adding the following 
> line of js before the if statement fixes the problem for me (could probably 
> be optimised).
> {code}
> // make sure querystring parameters are not taken into account in the 
> comparison
> src = src.indexOf('?') !== -1 ? src.split('?')[0] : src;
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to