contentful/contentful.java

CDARichHyperLink data null when linked to an entry

Closed this issue · 1 comments

Jisagi commented

Im am using the latest (10.5.16) java-sdk for contentful and try to fetch hyperlinks from a richtext field. If the hyperlink is a normal url (e.g. google.de), it works just fine: external link example

If I use a hyperlink and point to a different entry (which is also fully published), data is null: internal link example

I tried putting only the hyperlink into the richtext, nothing else, tried using it inside a list, outside of one, with and without text before and after it, but nothing worked. I redownloaded all dependencies again but no luck either.

Jisagi commented

I was able to get the information by including deeper levels when fetching the overall CDAEntry. Not really intuitive, when I already worked on deeper levels of the entry, but hey, it works now.