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

Does not properly linkify URLs with custom protocol fields #212

Closed
NotAFile opened this issue Sep 26, 2017 · 5 comments
Closed

Does not properly linkify URLs with custom protocol fields #212

NotAFile opened this issue Sep 26, 2017 · 5 comments

Comments

@NotAFile
Copy link

This was originally reported downstream as element-hq/element-web#5094

When viewing links, of the form protocol://whatever, linkify does not properly highlight the full link

Steps to reproduce

  • linkify message with a link with a custom protocol, e.g. aos://151723184:32876:0.75
  • Notice that the aos: does not get linkified, only the //151723184:32876:0.75
@alex-jitbit
Copy link

alex-jitbit commented Jun 15, 2020

any plans to consider this?

Would love to see support for skype:xxx git:xxx about:xxx and any other scheme

@mikejzx
Copy link

mikejzx commented Jan 4, 2021

Would also like to see this implemented, so we can linkify gopher:// and gemini:// links 😉

@nfrasser nfrasser added this to the 3.0 milestone Mar 11, 2021
@nfrasser nfrasser mentioned this issue Mar 11, 2021
@nfrasser
Copy link
Collaborator

Fixed in v3. See docs for adding custom protocols.

@hkuznetsovb
Copy link

hkuznetsovb commented Nov 26, 2021

guys, how to add custom protocol for react component? I registered it by using linkify.registerPlugin but Linkify component doesn't recognize new protocol..

@nfrasser
Copy link
Collaborator

@hkuznetsovb use linkify.registerCustomProtocol instead

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

No branches or pull requests

5 participants