Fix/seo audit - #167
Conversation
Ahrefs counts a decorative alt="" as a missing alt attribute, so the cookie close button, the /uxcp country flags and the longevity environment icons showed up across ~90 pages in the audit. Alt text is derived from content already on the page — the country name and the Strapi item name — so it stays correct and localized as the content changes. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The locale-root canonical was built from asPath, and the `asPath === '/'` guard only catches the bare root. Add any query string and the path fell through as "/?x=1", which cleanURL trimmed back to "/" — yielding https://keepsimple.io/ru/ and /hy/, both of which 308 to the slashless form. Ahrefs surfaced it via a scanner's ?phpinfo=1 probe, but it hit every UTM-tagged link to the RU and HY homepages too. English is unaffected: it has no locale prefix, so the path is "/" and the domain root never redirects. Also flip the 404 page from "index, follow" to "noindex, follow" — it was inviting Google to index the error page. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Claude finished @MaryWylde's task in 1m 47s —— View job Claude's Review
SummarySmall, well-scoped SEO fix PR (21/-8 across 9 files). Two independent fixes:
No violations of AGENTS.md conventions spotted (no App Router patterns, no new state libs, no global CSS leaks, import order untouched, barrels untouched). No inline comments needed — didn't find bugs, only a couple of very minor optional nitpicks not worth blocking on:
Verification note: I was unable to run |
No description provided.