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

ASF GitHub Bot commented on CB-6299:
------------------------------------

Github user gabrielschulhof commented on the pull request:

    https://github.com/apache/cordova-wp8/pull/30#issuecomment-38056875
  
    That does indeed work. What doesn't work is 
```x-wmapp0:/www/some-other-file.html```. The leading slash is causing a 404. 
Basically, 
[this](https://github.com/apache/cordova-wp8/blob/0f80d8802ce846f062d7bc343a0e46534bdbc7a9/wp8/template/cordovalib/XHRHelper.cs#L194-L205)
 code is only useful if you have absolute URLs that do not include the 
protocol. If the URL includes the protocol, then all that code is bypassed. My 
modification would first strip off the protocol so that code can do its magic.


> Ajax of local files not working when requested via absolute URL
> ---------------------------------------------------------------
>
>                 Key: CB-6299
>                 URL: https://issues.apache.org/jira/browse/CB-6299
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP7, WP8
>            Reporter: Gabriel Schulhof
>            Assignee: Jesse MacFadyen
>
> The code does not properly strip slashes from the path name when the URL is 
> absolute, because in that case the path name is prefixed with the protocol, 
> so the protocol must be stripped off first.
> References:
> https://github.com/jquery/jquery-mobile/issues/6574



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to