How to fix the “Press This” 404 Error

by Jay Versluis

in How To

If you’re not already using Press This, maybe now’s a good time to start. Press This is a for you if you’d like to share excertps from other websites on your own site. It’s a simple Javascript bookmarklet that opens a new window with a link to the site you’re on. It then lets you add pictures, text and post it to your site – just as if you’re writing a new post. It’s genious! Find it under “Tools” and drag the link to your browser bar – no installation needed, it’ll only be a simple bookmark.

However, on some sites the new window brings up a 404 error, indicating that something’s amiss. Turns out that WordPress is getting confused about certain mod-rewrite rules or something… Whatever the reason: Fret not, there’s an easy solution to fix this (thanks to Blogmum and the WordPress Forum for these instructions).

  • Right-click the Press This link on your browser bar, and select “properties”
  • You’ll see a long line of javascript code in the location box
  • Find the following code:
u='+e(l.href)+'
  • Change it to this:
u='+e(l.href.replace(/\//g,'\\/'))+'
  • Tada – Press This is working now. Hurra!

Please note that you might find it easier to copy the entire line of code into a text editor, search for the string and then post it back into the Properties section.

Happy Pressing ;-)

{ 5 comments… read them below or add one }

Extension:103 November 14, 2010 at 11:57 pm

this is great thanks for that, dont understand why this isnt fixed in the core updates?

Reply

Jay Versluis November 19, 2010 at 9:28 pm

That is a good question… same here, I don’t understand it ;-)

Reply

Michael December 16, 2010 at 9:53 am

Oh thank you, thank you, thank you!

It’s such an awesome feature that is hindered by this little bug, they really should fix it.

Thanks again!

Reply

K Quinn November 8, 2011 at 11:17 pm

Bless you! Everything else had me hacking the htaccess or worse. This did it!

Reply

Heather @ Family Friendly Frugality December 5, 2011 at 11:34 pm

Fabulous. Worked like a charm. Thank you!

Reply

Leave a Comment


Notify me of followup comments via e-mail. You can also subscribe without commenting.

{ 3 trackbacks }

Previous post:

Next post: