New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
myapp://web/:URLString doesn't work #43
Comments
This is also the case for me! A fix for this would be great! |
maybe base64 can fix this, but I don't think it's the best way Sent from my iPhone
|
It seems that NSURL pathComponent parsing doesn't like this. Is it possibly to simply not have "http://" as part of the URL? I could make a special case for http(s), but that seems dirty. I'll have to ponder this one a bit. |
+1 for passing URLs |
In the end. I change to Web?url=encodedUrl(). It can work |
@aelam what does this mean?
So,what do you mean by change to Web?url=encodedUrl(),need help really |
I mean it can't be parsed correctly in the pattern of |
got it,It seems better to manual modify the parser logic Thanks! |
@aelam got a new problem
Instead, you will get parameters url,aa,bb... |
encodedURLString means the url string should be encoded 发自我的 iPhone
|
Do you ever have a try?or,it must be something missing? It seems that the character: Any way , i modify the parser, manuly parse the pathComponents instead of the default URL. pathComponents to handle this. |
Firstly, encode
It should be Otherwise, your code of urlencode is wrong Be attention. Sent from my iPhone
|
Great! |
I defiend
myapp://web/:URLString
URLString will be URLencoded before,
it would be
myapp://web/http%3A%2F%2Fbaidu.com
but it's broken in
pathComponents parsing
. The encoded url would be split.See your code, pathComponents would be web, http:, baidu.com
Do you have an official way in your mind of this ?
The text was updated successfully, but these errors were encountered: