metaobject entry link for a button

Topic summary

Issue: A Shopify Liquid loop over metaobjects (shop.metaobjects.stores.values) renders store cards, but the “View Store Details” button does not link to the correct metaobject entry. The anchor uses href=“{{ store.url }}”, which isn’t producing the metaobject entry URL.

Context: The template outputs image, name, description, and location for each store metaobject, then attempts to link to the entry via {{ store.url }}.

What’s being asked: How to correctly retrieve and set the metaobject entry link for each item in the loop.

Notes:

  • Central to understanding is the provided Liquid code snippet.
  • Metaobjects are Shopify custom data entries; Liquid is the templating language.

Status: No solutions or alternative approaches have been provided yet. The question remains open with no confirmed resolution or action items.

Summarized with AI on December 14. AI used: gpt-5.
{% for store in shop.metaobjects.stores.values %}
        <div class="bckrt-card" data-name="{{ store.name | escape }}" data-location="{{ store.location | escape }}">
            <img src="{{ store.store_image | image_url }}" alt="{{ store.name | escape }}">
            <div class="bckrt-content">
                <h3>{{ store.name }}</h3>
                <p><strong>Description:</strong> {{ store.description }}</p>
                <p><strong>Location:</strong> {{ store.location }}</p>
                <a href="{{ store.url }}" class="bckrt-btn">View Store Details</a>
            </div>
        </div>
        {% endfor %}

I created this loop for my metobjects entries. in this the button link not getting metaobject entry link. Someone please help me with that?