Support » Plugins and Hacks » Tweet This HTML encoding custom short URL?

Tweet This HTML encoding custom short URL?

  • AndrewGail



    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:

    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=http://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?



  • The topic ‘Tweet This HTML encoding custom short URL?’ is closed to new replies.