When using the {{< >}}
notation Hugo replaces the shortcode call with a placeholder (e.g., HAHAHUGOSHORTCODE-SOMETHING
), then the markdown renderer does its thing, then we replace the placeholder with the rendered shortcode.
So the render hook was seeing HAHAHUGOSHORTCODE-SOMETHING
instead of the URL.