Hi,
Trying to get my head around PrismicRichText component. I have a richText field that includes paragraphs and a link to another page/document.
When I print it out on the front end the link is stripped? How do I prevent this? Or is there some other way of sorting this?
<PrismicRichText field={pageData.text.richText} />
Here is my graphql response
"data": {
"prismicAboutPage": {
"data": {
"text": {
"richText": [
{
"type": "paragraph",
"text": "\"I have always been fond of taking pictures. I have also always been rather fond of actors. So I spend quite a lot of time taking pictures of them. Now, there is always a healthy debate about what kind of headshot an actor ought to have. Should it look like you on your best day? Should it be a shot that lays bare your tortured soul or should it simply say, \" don't I look nice, I'd be great to work with\"! Well, my goal is to take very relaxed shots of you looking... just like you. That is the most important thing.\" - Ben",
"spans": [
{
"start": 387,
"end": 393,
"type": "strong"
},
{
"start": 521,
"end": 526,
"type": "strong"
}
]
},
{
"type": "paragraph",
"text": "If you are interested in my photographic ramblings you might like to check out my Blog.",
"spans": [
{
"start": 82,
"end": 86,
"type": "hyperlink",
"data": {
"id": "Yec2VxEAACIAonM-",
"type": "contact_page",
"tags": [],
"slug": "contact-page",
"lang": "en-gb",
"first_publication_date": "2022-01-18T21:51:24+0000",
"last_publication_date": "2022-01-18T21:51:24+0000",
"link_type": "Document",
"isBroken": false
}
}
]
}
]
}
}
}
},
Many Thanks