Generating feeds for Google Merchant Center or Facebook catalogs in Shopify
<script>
var l = window.location
/**
* allow app urls to pass through
*/
if (/^\/a\//.test(l.pathname)) {
// do nothing
} else {
var href = '<http://midway-starter.netlify.com|midway-starter.netlify.com>'
if (l.pathname) href += '/' + l.pathname
if (l.hash) href += l.hash
if (l.search) href += l.search
href = href.replace('//', '/')
window.top.location.href = 'https://' + href
}
</script>Was this answer helpful?
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.