AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Broken Local Image Paths In Croatian And Sinhala READMEs

The translated READMEs under i18n/ contain incorrect repository-relative image paths that resolve to non-existent i18n/apps/... locations instead of the actual repo-root apps/... assets, causing broken images in those documents.

mediumConfidence 95%Supabase

Origin Analysis

The Croatian and Sinhala READMEs were translated and moved into the i18n/ subdirectory without adjusting their relative image paths. Paths like 'apps/docs/public/img/supabase-architecture.svg' and './apps/www/public/badge-made-with-supabase.svg' are now resolved relative to the i18n/ directory, resulting in 404s at i18n/apps/... The correct reference should be prefixed with '../' to escape the i18n/ directory and point to the repository root.
1. Clone the supabase/supabase repository at master. 2. Open i18n/README.hr.md or i18n/README.si.md. 3. Locate any of the three image references: 'apps/docs/public/img/supabase-architecture.svg', './apps/www/public/badge-made-with-supabase.svg', './apps/www/public/badge-made-with-supabase-dark.svg'. 4. Observe that the rendered links point to i18n/apps/... which do not exist (404). 5. Compare with the actual assets located under apps/docs/public/ and apps/www/public/ at the repo root.

Fixing Code Block

import pathlib replacements = { "apps/docs/public/img/supabase-architecture.svg": "../apps/docs/public/img/supabase-architecture.svg", "./apps/www/public/badge-made-with-supabase.svg": "../apps/www/public/badge-made-with-supabase.svg", "./apps/www/public/badge-made-with-supabase-dark.svg": "../apps/www/public/badge-made-with-supabase-dark.svg", } for file_path in ["i18n/README.hr.md", "i18n/README.si.md"]: p = pathlib.Path(file_path) content = p.read_text(encoding="utf-8") for old, new in replacements.items(): content = content.replace(old, new) p.write_text(content, encoding="utf-8")
The script reads each affected Markdown file, replaces the incorrect relative image paths with versions prefixed with '../' so they resolve from the i18n/ directory up to the repository root, then writes the updated content back. The exact substring replacements ensure only the broken references are changed, and no other content is altered.

Edge Case Audit

Manual edits to translation files may be overwritten by automated translation sync processes if the translations are generated from a source. This fix should be applied to the source templates or coordinated with the translation maintenance workflow. To roll back, use 'git checkout -- i18n/README.hr.md i18n/README.si.md'. The Python script is cross-platform and avoids sed -i portability issues, but verify with 'git diff --check' after running.

Ecosystem Topology