What is the best way to get the url for each item added to a
Right now, I only get
I assume you are running in "connected" or "integrated" mode, right?
By default the
MultilistFieldSerializer responsible for the multilist field serialization (what the
ContentList ultimately becomes after app import) does not serialize
url and I believe was done to make the serializer more efficient.
You have two options:
1) Use integrated GraphQL to reshape the datasource data that comes out of the component, see more about the feature here: https://jss.sitecore.net/docs/techniques/graphql/integrated-graphql#integrated-graphql-in-jss-apps
2) Extend the default
MultilistFieldSerializer and add
url to the list of serialized fields.
I'd explore the first option first, since it would not require any .NET coding or changes to the configuration.
BTW, I had filed a similar issue in GitHub as well: https://github.com/Sitecore/jss/issues/69
Hope this helps!