Auto-generating of link on publishing