diff --git a/templates/sidepanel/right/right.html.twig b/templates/sidepanel/right/right.html.twig
index 7330874754..6f3cd9aad2 100644
--- a/templates/sidepanel/right/right.html.twig
+++ b/templates/sidepanel/right/right.html.twig
@@ -7,7 +7,15 @@
- {% block right %}
- {% endblock right %}
+ {% set current_path = app.request.get('_route') %}
+ {% if right_panel_vars is defined %}
+ {% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'vars': right_panel_vars}) %}
+ {{ block | raw }}
+ {% endfor %}
+ {% else %}
+ {% for block in handle_event('AppendRightPanelBlock', {'path': current_path}) %}
+ {{ block | raw }}
+ {% endfor %}
+ {% endif %}
\ No newline at end of file