N
Novuβ€’2y ago
fully levered

Link sent in SMS encoding when not desired

I am sending a link through a twilio integrated notification and it is encoding it when I just want it as plan text. From my server I am sending the link like this:
`https://clubhouse.links.golf/messages?id=${courseRequest.id}`
`https://clubhouse.links.golf/messages?id=${courseRequest.id}`
and receiving this. Any thoughts on how to resolve this?
16 Replies
sumitsaurabh927
sumitsaurabh927β€’2y ago
This is probably related to Twilio markup. Let me search this and I'll get back Have you tried sending without the backticks?
fully levered
fully leveredβ€’2y ago
i am using backticks in the other texts for dynamic usernames and no issues but i can try
sumitsaurabh927
sumitsaurabh927β€’2y ago
okay, see if that works
fully levered
fully leveredβ€’2y ago
no dice 😦
sumitsaurabh927
sumitsaurabh927β€’2y ago
😐
sumitsaurabh927
sumitsaurabh927β€’2y ago
What's your use-case though? Like, why do you want unclickable links?
fully levered
fully leveredβ€’2y ago
no the link should be clickable which it is but its jumbling the id. i want https://clubhouse.links.golf/messages?id=17 but getting https://clubhouse.links.golf/messages?id=&#3D;17
sumitsaurabh927
sumitsaurabh927β€’2y ago
I see so you've used the '=' in your server that is being encoded as '&#3D' you'll need to use url encoded for it to not get encoded
const id = encodeURIComponent(courseRequest.id);
const url = `https://clubhouse.links.golf/messages?id=${id}`;
const id = encodeURIComponent(courseRequest.id);
const url = `https://clubhouse.links.golf/messages?id=${id}`;
Try and see if this works πŸ™‚
fully levered
fully leveredβ€’2y ago
I originally thought that but still not working
Novu_Bot
Novu_Botβ€’2y ago
@fullylevered, you just advanced to level 1!
fully levered
fully leveredβ€’2y ago
this is how its passed to novu
sumitsaurabh927
sumitsaurabh927β€’2y ago
so even with url encoded, it is still jumbling id?
fully levered
fully leveredβ€’2y ago
yeah, i found a fix: https://docs.novu.co/platform/templates/#faq rendering it as html value with triple brackets fixed it lmao....weird
fully levered
fully leveredβ€’2y ago
thanks for pairing @sumitsaurabh927 !
sumitsaurabh927
sumitsaurabh927β€’2y ago
Thanks for posting!
Pawan Jain
Pawan Jainβ€’2y ago
Glad this FAQ helped you!
Want results from more Discord servers?
Add your server