- 🐛 Fixed embed/bookmark retrieval for sites that require cookies during redirects - Kevin Ansfield
See the changelogs for Ghost and Ghost-Admin for the details of every change in this release.
Tag Name: 3.20.1
Release Date: 6/17/2020
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
This minor release fixes a critical issue with bookmark cards for sites that require cookies during redirects (like Medium), preventing infinite redirect loops. It also adds functionality to populate missing image sizes on forced re-renders, improving the display of images in posts. This update enhances the reliability of content embedding and image handling in Ghost.
No migration steps are required for this update. This is a minor release that can be installed with standard update procedures.
This update is recommended for all Ghost users, especially those who:
The update addresses specific issues with bookmark card creation and image handling, improving the overall reliability of the platform. As a minor patch release (3.20.0 → 3.20.1), the upgrade should be straightforward with minimal risk.
Fixed bookmark card creation for sites requiring cookies during redirects: Resolved an issue where creating bookmark cards for sites like Medium would fail due to infinite redirect loops. The fix implements got's cookie support via tough-cookie to properly handle redirects that require cookies.
Fixed test behavior issues: Resolved unexpected behavior in tests that run after the cached-image-size-from-url_spec.js unit tests by fixing non-reverted rewire of imageSize.getImageSizeFromUrl.
Fixed no-shadow linter warnings: Addressed linter warnings in the image-size.js file to improve code quality.
A new populateImageSizes() function has been added to the mobiledoc library module that:
image-size library to efficiently read image dimensionshandle-image-sizes middlewareNo specific security fixes were included in this release.
Optimized image dimension reading: The new image size population feature uses the image-size library for faster reading of image dimensions, which improves performance when handling multiple images.
Improved handling of Unsplash images: The system now removes width and crop parameters from Unsplash image URLs to point to the full-size image, optimizing the image processing workflow.
Ghost 3.20.1 delivers important fixes and enhancements that improve content creation workflows. The bookmark card fix resolves a frustrating issue where creating cards for Medium articles and similar sites would fail due to redirect handling problems. The new image size population feature ensures that all images display with proper dimensions, even when posts are re-rendered.
These changes primarily benefit content creators by making the platform more reliable when working with external content and images. The code quality improvements and optimized image handling also provide a more stable foundation for developers working with the Ghost platform.
While this is a minor release, the fixes address specific pain points that could significantly impact content creation workflows, making it a worthwhile update for all Ghost installations.
See the changelogs for Ghost and Ghost-Admin for the details of every change in this release.