It is possible to override the new method XenForo_AttachmentHandler_Abstract::getContentLink(array $attachment, array $extraParams = array(), $skipPrepend = false) in order to pass additional parameters to the link builder if your content type should require it.