hugo
hugo copied to clipboard
[multihost] allow publishing processed images for each hosts
Image resource's Permalink work fine for original image on multihost setup, but produces a wrong link after processing the image, e.g. resize and filters.
Reproduce Steps
$ git clone -b processed-image-link [email protected]:razonyang/hugo-testing
$ cd hugo-testing
$ hugo server
And then navigated to http://localhost:1313/foo/ and http://localhost:1314/foo/.
The processed images on 1314 page are referenced to 1313.
What version of Hugo are you using (hugo version)?
$ hugo version hugo v0.123.1-3f8434a62fc91a50f4e5bd43a4435d2d301844ff+extended linux/amd64 BuildDate=2024-02-21T08:17:45Z VendorInfo=snap:0.123.1
Does this issue reproduce with the latest release?
Yes.
Are you sure this isn't a "shared resource"? There will be cases where you in a multihost setup links from hosta to hostb or vice versa.
Are you sure this isn't a "shared resource"?
This indeed is a shared resource, but in my use case, I wish to serve example.org from Cloudflare CDN, and serve zh.example.org from my self-hosted server directly, since Cloudflare CDN is slower in my region, that will be pointless if link resources to the default host.
Would this be considered as a feature request?
Would this be considered as a feature request?
Well, I wouldn't call it a bug if it's by design. Could you change the title/label to better reflect what it is.
Thanks for considering this! I changed the title, but have no right to edit the label.
Seems fixed by #12167, related to #12163.
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.