Yes it works! The problem I was having was because I was escaping the URL before I sent it to Discourse.