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

Is there a way to change target option according to url ? #69

Closed
VolodymyrVoloshyn opened this issue Jun 17, 2015 · 4 comments
Closed
Milestone

Comments

@VolodymyrVoloshyn
Copy link

Thanks you great plugin !
I'd like to set target= _self for some domains and _target for other ones, is there a way to do so ?
I've tried this
target: function (type) {
//
}
but I can't get url here.

@nfrasser
Copy link
Owner

This is currently not possible, but that's a great use case. We can definitely add this in.

@jonnywyatt
Copy link

+1!

So we can add rel="nofollow" and target="_blank" for external URLs only

@nfrasser
Copy link
Owner

Note that the option for this is slightly different now - the callback takes parameters (href, type) rather than just (type).

Full docs here: http://soapbox.github.io/linkifyjs/docs/options.html

@nfrasser nfrasser added this to the 2.0 milestone Jun 19, 2015
@jonnywyatt
Copy link

Impressive turnaround time thanks!

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

3 participants