Skip to content

Fix Ahrefs broken-image false positive in SDXL Turbo tutorial#678

Open
danstotts-ops wants to merge 3 commits into
mainfrom
fix/sdxl-turbo-broken-image-falsepositive
Open

Fix Ahrefs broken-image false positive in SDXL Turbo tutorial#678
danstotts-ops wants to merge 3 commits into
mainfrom
fix/sdxl-turbo-broken-image-falsepositive

Conversation

@danstotts-ops

Copy link
Copy Markdown
Contributor

What

The SDXL Turbo serverless tutorial showed a "Page has broken image" error in Ahrefs Site Audit (runpod.io project). Root cause: the example JS rendered the result image with innerHTML = <img src="${imageUrl}" ... >``. Mintlify syntax-highlights that code, and Ahrefs's crawler scraped the literal <img src="${imageUrl}" out of the highlighted markup, treating the unrendered `${imageUrl}` as a broken image URL. Nothing was broken for readers.

Change

Rewrote the snippet to build the image with document.createElement("img") + replaceChildren. Renders identically, is better practice (no innerHTML string), and removes the scrapeable <img src="..." literal so the audit stops flagging it.

No content/prose changes; one code block in tutorials/serverless/generate-sdxl-turbo.mdx.

🤖 Generated with Claude Code

danstotts-ops and others added 2 commits June 14, 2026 19:05
The example JS built the result image with innerHTML containing a literal
`<img src="${imageUrl}" ...>`. Mintlify's syntax highlighting let Ahrefs Site
Audit scrape that as a real <img> with an unrendered ${imageUrl} src, flagging
the page for a broken image. Rewrite the snippet to build the image via
document.createElement, which renders identically, is better practice, and
removes the scrapeable literal.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jun 26, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
runpod-docs 🟢 Ready View Preview Jun 26, 2026, 10:22 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant