ctrl-alt-del-world / midway

Headless Starter with Sanity + Gatsby + Shopify Repo
https://midway.ctrlaltdel.world/documentation/
MIT License
261 stars 33 forks source link

Slug, SEO settings not available, can't change product slug in Sanity, link preview #36

Closed Hahlh closed 3 years ago

Hahlh commented 3 years ago

Just a small note for anybody that struggles with changing the product page slug in Sanity / Shopify.

Normally that slug would be editable through a setting on the very bottom of your product page:

image

But if you don't have any other sales channels activated that rely on this setting (besides your headless store / the buy button), you won't be able to edit this setting in Shopify and therefore you won't be able to sync the change into Sanity. The setting above won't be displayed at all.

If you would like to change the slug, an easy option is to activate another sales channel for a brief moment, change and sync the slug and move on, although you could of course also disable that slug in the Sanity content model overall, until other sales channels become relevant.

I hope this spares somebody from the future some searching and some confusion.

Happy coding!