diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-01-30 22:26:55 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-01-31 09:18:22 +0100 |
commit | 70423f0c0ce2a013955531490cf8d71e0610c0b6 (patch) | |
tree | 66c0c2dbe3cb06d119fbb65b632e70a6956cd21c /resources/page/page_integration_test.go | |
parent | 5b7cb258ec26d7de690099f5dc39935b8d728155 (diff) |
Filter out duplicate content resource filesfix/order-11946
We do a slight normalisation of the content paths (lower case, replacing " " with "-") and remove andy language identifier before inserting them into the content tree.
This means that, given that that the default content language is `en`:
```
index.md
index.html
Foo Bar.txt
foo-bar.txt
foo-bar.en.txt
Foo-Bar.txt
```
The bundle above will be reduced to one content file with one resource (`foo-bar.txt`).
Before this commit, what version of the `foo-bar.txt` you ended up with was undeterministic. No we pick the first determined by sort order.
Note that the sort order is stable, but we recommend avoiding situations like the above.
Closes #11946
Diffstat (limited to 'resources/page/page_integration_test.go')
0 files changed, 0 insertions, 0 deletions