Skip to content

Default locale should be the first valid token from locales #1226

@pbaumard

Description

@pbaumard

Affected version

3.20.0

Bug description

Description

Since the changes introduced in issue #1083, the default locale used by site:site is no longer the first valid token in the locales parameter.
This breaks the documented behavior and alters long‑established expectations.

According to the plugin’s site:site documentation,
locales is “a comma separated list of locales to render. The first valid token will be the default Locale for this site.”.

The behavior before #1083 followed this rule.
The changes introduced there should be reverted.

Steps to Reproduce

Configure the plugin with:

<locales>fr</locales>

Expected Behavior

With locales = fr, the default locale should be fr, and the default output directory should remain:
target/site/

Actual Behavior

The generated site is placed under a locale‑specific directory:
target/site/fr/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions