You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same error as #9880 and #9993 however I can provide a reproducer.
Summary of the error:
In packages/ui/src/elements/Thumbnail/index.tsx
The recently introduced imageCacheTag gets appended to an image URL.
It should check the URL for parameters and append to the parameters list with ¶m=value instead of a simple ?param=value.
Use-case: I am using a /_next/image?url=https.....jpg&w=384&q=75 URL to generate thumbnails for remotely hosted images.
Appending a ?cacheTag=... breaks the integer parsing for the quality param in next, and will break other hosting services like AWS S3, CloudFront CDN, ...
Use the existing user in the sqlite DB ([email protected] as name and pw) or create a new one.
Upload a new Media item, then navigate to its edit page (you should be there after the upload anyway).
The thumbnail is broken.
Which area(s) are affected? (Select all that apply)
Describe the Bug
Same error as #9880 and #9993 however I can provide a reproducer.
Summary of the error:
In
packages/ui/src/elements/Thumbnail/index.tsx
The recently introduced
imageCacheTag
gets appended to an image URL.It should check the URL for parameters and append to the parameters list with
¶m=value
instead of a simple?param=value
.Use-case: I am using a
/_next/image?url=https.....jpg&w=384&q=75
URL to generate thumbnails for remotely hosted images.Appending a
?cacheTag=...
breaks the integer parsing for the quality param in next, and will break other hosting services like AWS S3, CloudFront CDN, ...Link to the code that reproduces this issue
https://github.com/barthy-koeln/payload-repro-cachetag-param
Reproduction Steps
Use the existing user in the sqlite DB (
[email protected]
as name and pw) or create a new one.Upload a new Media item, then navigate to its edit page (you should be there after the upload anyway).
The thumbnail is broken.
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
The text was updated successfully, but these errors were encountered: