Fix share link generation issue