gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.63k stars 7.45k forks source link

Embedded image render hook does not retain fragment and query string #12468

Closed jmooring closed 4 months ago

jmooring commented 4 months ago

Reference: https://discourse.gohugo.io/t/the-embeded-image-render-hook-removes-uri-fragment-of-src-attribute/49684

The embedded link render hook retains the fragment and query string...

https://github.com/gohugoio/hugo/blob/c46d603a027a715db604d39f7a2e68a157ef0001/tpl/tplimpl/embedded/templates/_default/_markup/render-link.html#L11-L17

But the embedded image render hook does not.

https://github.com/gohugoio/hugo/blob/c46d603a027a715db604d39f7a2e68a157ef0001/tpl/tplimpl/embedded/templates/_default/_markup/render-image.html#L5

github-actions[bot] commented 3 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.