How to fix the “Press This” 404 Error

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:
<code>u='+e(l.href)+'</code>
  • Change it to this:
<code>u='+e(l.href.replace(/\//g,'\\/'))+'</code>
  • 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 😉





Jay is the CEO and founder of WP Hosting, a boutique style managed WordPress hosting and support service. He has been working with Plesk since version 9 and is a qualified Parallels Automation Professional. In his spare time he likes to develop iOS apps and WordPress plugins, or draw on tablet devices. He blogs about his coding journey at http://wpguru.co.uk and http://pinkstone.co.uk.