Why is my website's sitemap returning a corrupted code?

Our sitemap isothelabel.co.nz/sitemap.xml is returning code:

https://isothelabel.co.nz/sitemap_products_1.xml?from=6984735981733&to=7037123362981 https://isothelabel.co.nz/sitemap_pages_1.xml https://isothelabel.co.nz/sitemap_collections_1.xml https://isothelabel.co.nz/sitemap_blogs_1.xml new (class{constructor(e){this.client=window[Symbol.for(e)],this.bindEvents()}bindEvents(){const e=this;var t;history.pushState=(t=history.pushState,function(){const n=t.apply(this,arguments);return e.onUrlChange(),n});let n=!0;history.replaceState=(t=>function(s){var r=t.apply(this,arguments);return n||e.onUrlChange(),n=!1,r})(history.replaceState),window.addEventListener(“hashchange”,(function(){e.onUrlChange()}))}onUrlChange(){this.client.emitToBg(“TAB_STATE__INTERNAL_CONTENT_URL_REWRITED”)}})(‘MARIO_POST_CLIENT_{fca67f41-776b-438a-9382-662171858615}’)

Any ideas on what is happening? Thanks team!

@yvettep

You could try resubmitting your sitemap by following our guide here. If you’ve customized your robots.txt file then I’d recommend contacting a Shopify Expert if someone from the community is unable to provide an answer.

If there is something wrong with your sitemap resubmitting it do NOT help. However it looks fine here so either it was fixed, a temporary Shopify error or something that is being injected in your own browser. Try and reload it in another browser or an incognito window and look again.

Editing your robots.txt file (via liquid) does not change this list of XML sitemaps.

2 Likes