Share link functionality

The code creates link for sharing with user.