mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
The docs sitemap listed .html URLs that Cloudflare Pages 308-redirects to their clean form, while every page's canonical/hreflang already pointed at the clean URL. Google indexed the redirecting .html variant and picked its own canonical (GSC "Duplicate, Google chose different canonical"), and burned crawl budget re-fetching redirecting URLs. Setting VitePress cleanUrls:true makes the sitemap and internal links extension-less so they match the canonicals. CF Pages already serves the clean URL at 200 and 308s the .html form, so no hosting change is needed and legacy .html hits consolidate. Also mark demo.snapotter.com noindex: it mirrors the real app under the same domain property, so its routes were being crawled and indexed as thin, duplicate pages.