Fix #3621 broken X/Twitter avatars & links in testimonials by adding fallback image handling #306
+79
−47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves the resilience of the testimonials section ("What our community thinks") by fixing broken X/Twitter avatars and restoring consistent linking behavior. The work contributes toward resolving [#3621], where several profile links were broken and some tweets did not render properly.
Issue Reference
Changes
Motivation
Remote assets from X/Twitter frequently return redirects, HTML payloads, or CDN error codes (e.g., 403). These failures result in blank avatar spaces, broken links, and layout shifts that degrade Lighthouse metrics (CLS, INP) and visual clarity. The modifications in this PR aim to achieve graceful degradation and reduce dependency on network conditions and external CDNs for critical rendering.
Testing & Observations
Local verification was performed under the following cases:
No changes were made to backend, routing logic, or build pipeline.
Visual Comparison (Before / After)
Before (broken avatars / URLs)


After (fallback + corrected links)
Notes
The outcome contributes to the fix for [#3621], but does not modify testimonial source content or editorial selection. Feedback from maintainers is welcome regarding alternative approaches (e.g., caching avatars, sanitizing URLs at build time, or fully decoupling external testimonials from CDN behavior).