Fix Ahrefs broken-image false positive in SDXL Turbo tutorial#678
Open
danstotts-ops wants to merge 3 commits into
Open
Fix Ahrefs broken-image false positive in SDXL Turbo tutorial#678danstotts-ops wants to merge 3 commits into
danstotts-ops wants to merge 3 commits into
Conversation
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>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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