The patterns list page is not working

Created on 24 February 2023, over 1 year ago
Updated 1 March 2023, over 1 year ago

Hello
The route "/patterns" does not work in the dev version of the module.
This is caused by the template override: templates/overrides/ui_patterns_library/patterns-overview-page.html.twig

More precisely in this statement :

<h2 class="pattern-preview__label fr-display-lg" id="{{ pattern_name }}">
 <a href="{{ url('ui_patterns.patterns.single', {'name': pattern.id}) }}">
 {{ pattern.label }}
 </a>
</h2>

The link takes the pattern.id as a parameter when it should take the pattern_name parameter.

I'm adding a patch that fixes the problem. I also took the liberty to rework the template which had some errors:
- Indentation of the template
- FIx defective HTML tags. Example : <div class="fr-grid-row""> or <ul class="class="fr-sidemenu__list">
- I started again from the original template in order to have the same logic while keeping your modifications in connection with the DSFR

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇷🇪Réunion Martygraphie Saint-Denis (Réunion)

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

Comments & Activities

Production build 0.71.5 2024