WordPress.org

Ready to get started?Download WordPress

Forums

Tweet This
Tweet This HTML encoding custom short URL? (1 post)

  1. AndrewGail
    Member
    Posted 2 years ago #

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

    Regards,
    Andrew

    http://wordpress.org/extend/plugins/tweet-this/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic