Fix links resolving in links transformer