Skip to content

[7.x] Reintroduce parser error for mixed pipe/shorthand modifier syntax #15074

Description

@marcorieser

#14892 threw a parser error when a tag mixed pipe (|) and shorthand key=value modifier syntax, fixing #13080. Reverted in #15073 — it broke previously working syntax like {{ last_modified | format="U" }}, a breaking change for a minor release.

Mixing both styles is always invalid and should always throw, e.g.:

{{ active_platforms | sort="value" }}
    ...
{{ /active_platforms }}
{{ last_modified | format="U" }}

The second case only "worked" because the pipe segment was silently ignored while the shorthand param did the real work — worth disallowing.

Tasks:

Related: #13080, #14892, #15073

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions