cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timo Ernst (JIRA)" <>
Subject [jira] [Closed] (CB-2498) PhoneGap InAppBrowser: Cannot open link with “%” character
Date Wed, 20 Feb 2013 14:41:13 GMT


Timo Ernst closed CB-2498.

    Resolution: Not A Problem

Wasn't a bug. Just had an unencoded whitespace in the url.
> PhoneGap InAppBrowser: Cannot open link with “%” character
> ----------------------------------------------------------
>                 Key: CB-2498
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>         Environment: iOS
>            Reporter: Timo Ernst
>            Priority: Critical
> I am using PhoneGap 2.4 for my iOS project.
> When opening external URL's in a new webview layer via JS call, "_blank");,
this works well for "simple" URL's, e.g. "".
> more complicated URL's which include whitespaces and special characters are a problem.
To avoid this, I URL-encode them via this JavaScript-call:
> url = encodeURIComponent(url);
> This won't work with the InAppBrowser plugin. Instead I get an error message saying:
> webView:didFailLoadWithError - The operation couldn't be completed. (WebKitErrorDomain
error 101.)
> So, I looked into this and I noticed that the call to, "_blank"); fails
with this error message if the url contains the "%" character, e.g. if a whitespace character
gets encoded to "%20".
> How can I work around this? Isn't this a bug?
> Update: I just tested the same app on Android with PhoneGap 2.3. Works like a charm.
So it's either an iOS issue or a problem with the latest PhoneGap release which is 2.4.

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:

View raw message