Adding conditional for share links