This filter doesn't work if Drupal is in a subdirectory.
On line 220 I changed it to :

$attributes['link'] ? $attributes['link'] : base_path().'node/'.$node->nid, 

to get it to work with a subdirectory. I haven't tested the views or other links that may be happening as I'm only using this on Nodes right now.