Skip to content

Commit 5237ea4

Browse files
committed
fix(seo): emit canonicals with the trailing slash the server actually serves
The hosting serves every route with a trailing slash and 307-redirects the bare form, while canonicals pointed at the bare form. trailingSlash: true aligns canonicals, internal links and Astro's trailingSlash setting with the served URLs, which the sitemap already used.
1 parent 228e18c commit 5237ea4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/config.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ site:
22
name: PyMCU
33
site: 'https://pymcu.org'
44
base: '/'
5-
trailingSlash: false
5+
# true = los canonicals y enlaces internos llevan barra final, igual que la URL
6+
# que sirve el hosting (la variante sin barra responde 307 hacia la con barra).
7+
trailingSlash: true
68

79
# Vacio A PROPOSITO: el dominio esta verificado en Search Console por DNS, que
810
# cubre todo el dominio y sobrevive a cualquier cambio de plantilla. NO reponer

0 commit comments

Comments
 (0)