This is very similar to what I experience. I’m testing some hugo sites using a deploy script which substitutes the baseurl in the config.toml to have it sit under something like http://test.example.org/SITE/ and in production it runs (e.g.) under http://site.org/
I’m using the HugoMDL theme and what breaks is at least the cardthumbimage and cardheaderimage, which are by default under /images/cardthumbimage.png or something similar.
If this would be rendered as baseurl+/images/cardthumbimage.png it would turn out ok, but as it is, it’s always /images/cardthumbimage.png
Is this the same bug?