Share tags2

Supersedes #11351.
missing param $tableName