That's easy. You need a plugin which does not much more than this: public function discussionController_discussionInfo_handler($sender, $args) { echo '<span class="MItem CommentCounter">'.anchor( '#1', $sender->Discussion->Url, 'Permalink', ['rel' => 'nofollow'] ).'</span>'; } public function…