Another option would be to link to the real URL, and make a synchronous XHR from JavaScript (to your server) when the link is clicked.