Remove unneded part of link