correctly remove referral link from client side