Commit 6d7378c
fix(links): absolute URL for openapi.json in conventions (#238)
* fix(seo): enable trailingSlash for consistent canonical/hreflang/sitemap URLs
Semrush flagged 9 hreflang conflicts because Vercel serves both /en and
/en/ as 200 (no redirect), so whichever form tags use conflicts with the
alternate crawled URL.
Fix: enable trailingSlash: true in Next.js config so Vercel redirects
/en → /en/ (308). Update page.tsx and sitemap generator to produce
trailing-slash URLs consistently across:
- <link rel="canonical">
- <link rel="alternate" hreflang>
- sitemap.xml <loc> and <xhtml:link>
Build tested locally — static export now generates directory-based
index.html files (en/index.html instead of en.html).
* fix(ci): update check-links entry path for trailingSlash mode
With trailingSlash: true, static export produces en/index.html instead
of en.html. Update the link checker entry path from /en.html to /en/
so the CI check-links step finds the homepage.
* fix(links): absolute URL for openapi.json link in conventions
Same class of bug as asyncapi.yaml — relative /openapi.json gets
locale-prefixed to /en/openapi.json (404). Use absolute URL instead.
---------
Co-authored-by: paperclip-resolver[bot] <3736210+paperclip-resolver[bot]@users.noreply.github.com>1 parent 94a4799 commit 6d7378c
4 files changed
Lines changed: 4 additions & 4 deletions
File tree
- content
- de/api-reference
- en/api-reference
- es/api-reference
- pt-BR/api-reference
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
0 commit comments