Hello,
we use Prismic with Nuxt.js.
We created a multi-level menu with a Link to a document
option. The main link works fine, however, the sub-link doesn't seem to have a URL attached to it.
We have a slice. Inside the slice, we have a non-repeatable zone with a Link field
and a repeatable zone with a Link field
.
The problem is, we can not get URLs from repeatable items with Link to a document
option. Link to a web
works fine with any zone.
If the field is non-repeatable, it seems ok. We can get it with primary.url.url
"primary": {
"title": "Our Platform",
"identify": "platform",
"url": {
"id": "YynWjhEAACIAciRx",
"type": "ourplatform",
"tags": [],
"lang": "en-gb",
"slug": "our-platform",
"first_publication_date": "2022-09-20T15:04:50+0000",
"last_publication_date": "2022-09-30T12:57:58+0000",
"url": "/platform",
"link_type": "Document",
"isBroken": false
}
}
but in repeatable, the URL is missing
"items": [
{
"subNavTitle": "Online Manufacturing Services",
"subNavUrl": {
"id": "YzchKxEAACIArdoT",
"type": "onlinemanufacturingservices",
"tags": [],
"lang": "en-gb",
"slug": "online-manufacturing-services",
"first_publication_date": "2022-09-30T17:04:09+0000",
"last_publication_date": "2022-10-18T21:10:16+0000",
"link_type": "Document",
"isBroken": false
}
},
]
How can we get the URL from a repeatable field if it's a Link to a document?
Thank you