-
Notifications
You must be signed in to change notification settings - Fork 239
Hashtags not linking with Custom Replace Function #96
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
Comments
Still looking for an answer for this one, I've tried several different things and looked through the docs, but I'm completely stumped :( |
the hashtag option defaults to false. I have worked around this by setting the option {hashtag: 'twitter'} The replaceFn() then executes as expected. |
@MetaTribal Thanks a lot for replying - I'll change the code when I get home from work :) I appreciate your help! Cheers, Jake |
Hi @MetaTribal - I tried this out but this actually took me back to square 1, because it is linking to twitter.com - the reason that I'm using the replaceFn is because I would like to have Autolinker replace hashtags with links to my own domain - in the above code you can see that I'm using a relative URL. This works fine for @ mentions, but it isn't working for hashtags. Does that make sense? If you have any additional tips about how I can achieve this it would be great :) Cheers, Jake |
So sorry for the late response Jake.. Looking to build something a bit different for hashtags, as suggested in #130. In the meantime, @MetaTribal's suggestion should have worked. Setting |
@gregjacobs great package. I have been using in default state in production for ages. Thanks. I have initialized the autolinker with
then I call it like so
But the
|
I would recommend opening another issue to not get your message lost. :) |
I am having the same problem how did you resolved this |
Hi - I love Autolinker, it's really useful! I'm having an issue though using the 'replaceFn' so that I can replace mentions & hashtags with my own urls. The thing is, @mentions are working fine, but hashtags are not. Below is the code that I'm using (as part of a much larger function):
If anyone can point out what I'm doing wrong / neglecting here I'd really appreciate it!!
Cheers,
Jake
The text was updated successfully, but these errors were encountered: