Fixing URL transformation algorithm

It didn't work with URL like this:
http://host.com/path/to/file.txt#/foo?bar=baz
When hash sign is in front of question mark - it only strips the question mark, leaving the hash and breaking the whole app.
This commit is contained in:
avidmich 2013-04-08 22:20:50 -03:00 committed by Andrew Grieve
parent 4864d52966
commit cb99ed0a01

View File

@ -57,7 +57,7 @@ public class IceCreamCordovaWebViewClient extends CordovaWebViewClient {
if(niceUrl.contains("?")){
niceUrl = niceUrl.split("\\?")[0];
}
else if(niceUrl.contains("#"))
if(niceUrl.contains("#"))
{
niceUrl = niceUrl.split("#")[0];
}