Skip to content

Commit c4dfa51

Browse files
authored
IBX-9285: Navigation anchor on content creation/edition not working with diacritical marks (#1410)
1 parent 48d4c3d commit c4dfa51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bundle/Resources/views/themes/admin/ui/menu/anchor_menu.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
{%- if loop.first %}
5050
{%- set itemClass = itemClass ~ ' ibexa-anchor-navigation-menu__sections-item-btn--active' %}
5151
{%- endif %}
52-
{%- do item.setAttribute('data-target-id', "#" ~ item.getAttribute('data-target-id')) -%}
52+
{%- do item.setAttribute('data-target-id', "#" ~ item.getAttribute('data-target-id')|lower|slug) -%}
5353
{%- do item.setAttribute('class', (item.getAttribute('class') ~ ' ' ~ itemClass)|trim) -%}
5454
{%- do item.setAttribute('type', 'button') -%}
5555
{%- do item.setLabelAttribute('class', 'ibexa-anchor-navigation-menu__sections-item-btn-label') -%}

0 commit comments

Comments
 (0)