fallback function - old way of generating share links and new way for categories