Getting the parent of an entry that is displayed using a replicator

I have a collection which is mounted onto a page. I'd like to be able to get the parent URL from each item in the list of entries stored using a replicator field like this:

cards:
  -
    entry:
      - f39defb4-4fc2-435c-a9c4-625fb59f453e
    type: entries
    enabled: true
  -
    entry:
      - 6806eefd-6b06-4e8e-b3aa-bda09a5292e6
    type: entries
    enabled: true
  -
    entry:
      - 2c3487b1-4d4e-48ad-a2ab-448bd1d39cbd
    type: entries
    enabled: true

An example template:

{{ cards }}
    {{ entry }}
        {{ title }}
        {{ url }}
        {{ parent }}
            {{ url }}
        {{ /parent }}
    {{ /entry }}
{{ /cards }}

In the above template, both {{ title }} and {{ url }} output properly but the {{ parent }}{{ url }}{{ /parent }} just outputs the current page URL.

However, if I was to go to the slug of one of those entries and add {{ parent }}{{ url }}{{ /parent }} to the relevant template then it will output the correct parent URL.

So how do I get the parent URL of an actual entry, where the collection is mounted onto a page?

>>>>>>> Unanswered <<<<<<<
1 Reply
1 Follower