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
Part of #734. Three holes outside the component, each found by a real call site on Jahia/jahia.com.
buildImageUrl registers no cache dependency.getImageProps does. buildImageUrl is the only option for a CSS background-image, so a background image silently loses the flush an <img> gets.
readImageMeta is not exported.Layout.tsx on jahia.com re-reads j:width / j:height by hand, with its own try/catch, for og:image:width and og:image:height. The library already has that function, guarded, and keeps it private.
No absolute URL. jahia.com hardcodes https://www.jahia.com six times for JSON-LD and reaches past the library to getAbsoluteUrl for og:image. Shared with the link side (buildNodeUrl gaps a link component cannot work around #756); land it once on buildNodeUrl and expose it on both.
Part of #734. Three holes outside the component, each found by a real call site on Jahia/jahia.com.
buildImageUrlregisters no cache dependency.getImagePropsdoes.buildImageUrlis the only option for a CSSbackground-image, so a background image silently loses the flush an<img>gets.url(...)value, with the same comma handlingsrcSetneeds — a DAM URL containing a comma breaksurl()the way it breakssrcSet(srcset URL rewriting corrupts candidate URLs containing commas jahia#23).readImageMetais not exported.Layout.tsxon jahia.com re-readsj:width/j:heightby hand, with its own try/catch, forog:image:widthandog:image:height. The library already has that function, guarded, and keeps it private.https://www.jahia.comsix times for JSON-LD and reaches past the library togetAbsoluteUrlforog:image. Shared with the link side (buildNodeUrl gaps a link component cannot work around #756); land it once onbuildNodeUrland expose it on both.