Open jmooring opened 1 month ago
The following also seems related?
Thinking back, I'm not sure I would label this as a bug. Resources inside /assets
are considered global and we have never had any concept of "duplicating resources from assets" across languages. So, I think this is "as designed" -- whether the design is great, that cold be debated.
In a multihost configuration we are duplicating resources from assets across languages. The test case above produces this:
public/
├── de/
│ ├── index.html
│ └── main.css
└── en/
├── index.html
└── main.css
The problem is that, for one of the sites, the .Permalink
method points to the wrong place.
This isn't anything new. I am able to reproduce with v0.54.0 and later.
The last assertion fails; the file is identical to public/en/index.html, which means it's pointing to the wrong site.
Reference: https://discourse.gohugo.io/t/multihost-trouble/50103
The work around is to use
RelPermalink
instead: