👋 Next.js Conf 2024: Come build, party, run, and connect with us! See all events
Back to changelog

Customize Shopify metaobject page slugs

Sanity Connect syncs your content as metafields and metaobjects in Shopify. Shopify can host custom webpages for each of your metaobjects based on a theme template.

When you host pages on Shopify, the page URL is derived from your metaobject's handle. With this update, you can now customize the handle for your metaobjects.

On the Metaobjects tab in Sanity Connect, you can enable a setting to 'Use slug as handle.' When enabled, your metaobject's handle will be the value you have set in a slug-type field that you have configured on your document in Sanity. The first slug field found on the document is used. If there is no value for a slug field, then the handle defaults back to the Sanity document ID.

Shopify configuration for using a custom slug as a metaobject handle

Documentation affected by this release

Published August 13, 2024