Changes the path logic of getLink().