Skip to content

fix: handle literal percent in thumbnail paths - #2443

Merged
markdumay merged 1 commit into
mainfrom
fix/thumbnail-percent-paths
Dec 1, 2026
Merged

markdumay merged 1 commit into
mainfrom
fix/thumbnail-percent-paths

Conversation

@markdumay

Copy link
Copy Markdown
Collaborator

Summary

  • Resolve percent-bearing static thumbnail paths against the files on disk and publish their escaped URLs.
  • Preserve escaped path components when building provider image URLs.
  • Report the page and path when a malformed thumbnail cannot be published. Permissive mode uses the configured compatible SEO fallback or omits the image. Strict mode fails with the diagnostic.

Verification

  • Thumbnail, image publication, and strict-image regression coverage.
  • Production builds of the Hinode example with mod-docs on Hugo 0.171.0, locked 0.170.1, and the 0.158.0 floor.
  • The example article A thumbnail filename with a percent sign renders the original static image from its escaped URL.

Refs #2334.

@netlify

netlify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for gethinode-demo ready!

Name Link
🔨 Latest commit d57f83c
🔍 Latest deploy log https://app.netlify.com/projects/gethinode-demo/deploys/6b0eeaa5617007fb0f7f437e
😎 Deploy Preview https://deploy-preview-2443--gethinode-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@markdumay
markdumay merged commit e228f1f into main Dec 1, 2026
17 checks passed
@markdumay

Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 3.54.21 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant