velxio/frontend/scripts
David Montero 07a0bfef6e seo: emit trailing-slash canonical + sitemap URLs
Static/docs/example routes are served as <route>/index.html and nginx
301-redirects the slash-less form to add the trailing slash. The sitemap
generator, the prerender canonical/og:url, and the client useSEO canonical
all emitted the slash-LESS form, so every sitemap URL was fetched as a
redirect (filed under 'Page with redirect' in Search Console) and each
canonical pointed at a redirecting URL.

Align all three to the trailing-slash form so sitemap URL == canonical ==
served URL == 200, with no redirect hop.

- generate-sitemap.mjs: append '/' to every <loc> (root stays '/')
- prerender-seo.mjs: withSlash() on canonical + og:url (routes + examples)
- useSEO.ts: withTrailingSlash() on canonical + og:url (covers dynamic
  project pages too)
2026-06-15 06:10:32 +02:00
..
add-passive-presets.mjs
copy-monaco.mjs fix(monaco): cross-platform postinstall via Node script 2026-05-11 12:42:33 -03:00
generate-sitemap.mjs seo: emit trailing-slash canonical + sitemap URLs 2026-06-15 06:10:32 +02:00
generate-sitemap.ts
prerender-seo.mjs seo: emit trailing-slash canonical + sitemap URLs 2026-06-15 06:10:32 +02:00
translate-i18n.mjs