Skip to content

Bundle file override language order seems arbitrary #6082

Closed

Description

@bep

I have much simplified the "bundle implemention" and while diffing some sites output, I find some peculiar behavior when having many langauges and you try to reuse non-content files from others. Given this content structure:

nn/b1/index.md
en/b1/index.md
sv/b1/index.md
nb/b1/index.md
en/b1/data.json
sv/b1/data.json

For the nb/b1 bundle (no data.json) you will now sometimes get en/b1/data.json and sometimes sv/b1/data.json.

This is obviously wrong (we should pick one and the same every time), but I have forgotten what it was "supposed to be"? @regisphilibert ?

Activity

  1. added this to the v0.56 milestone on Jul 9, 2019
  2. self-assigned this
    on Jul 9, 2019
  3. bep commented on Jul 9, 2019

    @bep
    MemberAuthor

    To answer myself in the above:

    Pick the first available in a sorted language list, starting from the default content language.

  4. regisphilibert commented on Jul 9, 2019

    @regisphilibert

    Yes we use the Weight to sort languages. And this order should solve the language "precedence" when dealing with page resources.

  5. added 2 commits that reference this issue on Jul 10, 2019
    230407e
    d091e65
  6. added 9 commits that reference this issue on Jul 17, 2019
    abd2826
    40072a4
    45ec34c
    bbe2adc
    0363cf5
    06e598e
    23e376c
    aec72a0
    9f5a920
  7. github-actions commented on Feb 17, 2022

    @github-actions

    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.

  8. locked as resolved and limited conversation to collaborators on Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions