diff --git a/catalog/device/catalogapi.go b/catalog/device/catalogapi.go index 1ad8ec4..da6f2c9 100644 --- a/catalog/device/catalogapi.go +++ b/catalog/device/catalogapi.go @@ -144,8 +144,9 @@ func (self ReadableCatalogAPI) collectionFromDevices(devices []Device, page, per } func (self ReadableCatalogAPI) paginatedDeviceFromDevice(d Device, page, perPage int) *PaginatedDevice { + dev := d.ldify(self.apiLocation) pd := &PaginatedDevice{ - &d, + &dev, make([]Resource, 0, len(d.Resources)), page, perPage,