correctly build item's href with id