forked from github/cordova-android
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:
parent
4864d52966
commit
cb99ed0a01
@ -57,7 +57,7 @@ public class IceCreamCordovaWebViewClient extends CordovaWebViewClient {
|
|||||||
if(niceUrl.contains("?")){
|
if(niceUrl.contains("?")){
|
||||||
niceUrl = niceUrl.split("\\?")[0];
|
niceUrl = niceUrl.split("\\?")[0];
|
||||||
}
|
}
|
||||||
else if(niceUrl.contains("#"))
|
if(niceUrl.contains("#"))
|
||||||
{
|
{
|
||||||
niceUrl = niceUrl.split("#")[0];
|
niceUrl = niceUrl.split("#")[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user