Skip to content

Commit

Permalink
Fix potential infinite loop in Twig template
Browse files Browse the repository at this point in the history
When using the `FigureTwicpics` template in a `Figure.twig` component in
a project, using the `@ui` alias might create an infinite loop where the
template tries to include itself.
  • Loading branch information
titouanmathis committed Nov 17, 2022
1 parent ed74555 commit 90e3a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/atoms/Figure/FigureTwicpics.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
#}

{% extends '@ui/atoms/Figure/Figure.twig' %}
{% extends '@ui-pkg/atoms/Figure/Figure.twig' %}

{% set twic_param = 'v1' %}
{% if twic_transform is defined %}
Expand Down

0 comments on commit 90e3a6e

Please sign in to comment.