Skip to content
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

Missing Colon #60

Open
RyPoints opened this issue Feb 29, 2016 · 2 comments
Open

Missing Colon #60

RyPoints opened this issue Feb 29, 2016 · 2 comments

Comments

@RyPoints
Copy link

I have a link that is like https://www.site.com/java/Java.do

It displays correctly, but when I tap it it links to https//www.site.com/java/Java.do

This is the exact same link with a missing colon after the https. Any idea what could cause that and how to mend it?

@RyPoints
Copy link
Author

The link is correct here:

- (void)receivedActionForLinkType:(KILinkType)linkType string:(NSString*)string range:(NSRange)range
{
    NSLog(@"linkString: %@",string);

By the time it gets to Safari though, it is missing the colon.

@RyPoints
Copy link
Author

This functions as expected:

    case KILinkTypeURL:
        if (_urlLinkTapHandler)
        {   
            if ([string containsString:@"https://"]) {
                [[UIApplication sharedApplication] openURL:[NSURL URLWithString:string]];
            } else {
                _urlLinkTapHandler(self, string, range);
            }
        }
        break;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant