I am using this plugin with bbPress. When I try to email forum link and post, permalink was always the main page. So what I did was sending current URI in the ajax data and generate URL from that value rather than getting URL from
get_permalink(). I am posting this because it may be useful for future version of this plugin.