Target data to "open in new tab" is not found in doc response

Hi. I'm expecting to see a "target" in the link data object to tell me whether to open the link in a new tab or not, but I'm not getting it in the document response object.

I'm using https://github.com/prismicio/prismic-vue if that makes any difference.

image
image

Hey there,

Thanks for posting this question! You're looking in the right place for the target attribute — it should be available under text[0].spans[0].data.target . This looks like it could be an issue with retrieving the most up-to-date API response. Have you tried following these steps to debug your API response?

If that doesn't help, you can send me the name of your repo and the id of the document in your example, and I can take a look to try to identify an issue.

Otherwise, please let me know if you have any other questions :blush:

Sam

Looks like it might've possibly been cached, cause I'm seeing the target attribute now. Thanks!

Awesome! Glad to hear it's working :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.