Tweet This HTML encoding custom short URL?
-
Hi,
I’ve been teying to implement our own shortening service in Tweet This. We are using YOURLS and unlike most of the default services it requires a few additional parameters:
?signature=12345&action=shorturl&format=simple&url=https://www.cnn.com
pasting the full custom URL into the address bar returns the short URL in plain text, however testing with Tweet This returns nothing for the shortened URL.
Looking at the Apache logs it turns out that the Tweet This request looks like this:
?signature=12345& amp;action=shorturl& amp;format=simple& amp;url=https://www.cnn.com
(I’ve had to add spaces into the “& amp” to get them to display in this post)To which YOURLS returns a 400 error: Unknown or missing “action” parameter.
I tried replacing the & with %26, it was a long shot, and it didn’t work…
I can hack the plugin to fix this just now, but will this issue be corrected in a future update?Regards,
Andrew
- The topic ‘Tweet This HTML encoding custom short URL?’ is closed to new replies.