Problems with Twig name suggestions

Created on 9 January 2019, almost 6 years ago
Updated 9 January 2024, 12 months ago

With Twig debug on, the module shows unusable file name suggestions:

<!-- FILE NAME SUGGESTIONS:
   * dynamic-layout:product--node--16.html.twig
   * dynamic-layout:product--node-products-default.html.twig
   * dynamic-layout:product--node-products.html.twig
   * dynamic-layout:product--node-default.html.twig
   * dynamic-layout:product--node.html.twig
   x dynamic-layout-frontend.html.twig
   x dynamic-layout-frontend.html.twig
-->

Files cannot be named using colons on a Windows environment, and there may be problems in some Unix systems as well (See related issue).

Colons should be replaced with dashes to preserve compatibility.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024