capturing blog entry

I am trying to capture this blog entry http://hangingtogether.org/?p=750 as a citation by clicking on the Zotero icon behind the URL. Zotero captures the item, yet when I try to view it, I land on the blog homepage rather than the entry page. Inspecting what Zotero captured, I can see that it grabbed the URL as http://hangingtogether.org/?p instead of http://hangingtogether.org/?p=750. It does this consistently for any entry I try to capture from this blog.
  • I can confirm the error, and checking the COInS tag it doesn't look like that is the problem (full url is present in the COInS).
  • I believe this is a (long-standing) bug in the COinS WordPress plugin (or a similar plugin used on that site) that doesn't properly encode URLs with query string parameters. The '=' in the URL should be encoded. (WP installations that use nicer URLs wouldn't be affected.)

    I'm guessing adding urlencode() around the_permalink() in the plugin would fix it. It's not my code, but if someone with a WordPress installation wants to confirm that, I can put up a fixed version of the plugin. This wouldn't help for existing installations, though.
  • edited December 17, 2009
    Using the unAPI server plugin v. 1.4.2 (available in the wordpress repository) I was not able to reproduce the problem on a new WordPress install. The unAPI server plugin has an options page (yourwordpressurl.com/wp-admin/options-general.php?page=unapi/unapi.php) where you can check 'Use permalink'. If my WP install doesn't use permalinks and I uncheck this, it works (urls looking like the problematic one above are added correctly); if my WP install does use permalinks and I check this option, it also works.

    What is the relation of unAPI plugin to the Scholarpress Coins plugin?

    /edit
    Aha, using the Scholarpress Coins plugin I can reproduce the problem. And indeed, it would be fixed by properly urlencoding the permalink.

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.