hugo icon indicating copy to clipboard operation
hugo copied to clipboard

[multihost] allow publishing processed images for each hosts

Open razonyang opened this issue 1 year ago • 4 comments

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.

razonyang avatar Feb 22 '24 07:02 razonyang

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.

bep avatar Feb 22 '24 14:02 bep

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?

razonyang avatar Feb 22 '24 14:02 razonyang

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.

bep avatar Feb 22 '24 14:02 bep

Thanks for considering this! I changed the title, but have no right to edit the label.

razonyang avatar Feb 22 '24 14:02 razonyang

Seems fixed by #12167, related to #12163.

razonyang avatar Feb 28 '24 16:02 razonyang

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.

github-actions[bot] avatar Mar 21 '24 01:03 github-actions[bot]