From d00a9185c1155f947c08516bfc417d2f3e470847 Mon Sep 17 00:00:00 2001 From: Allan Simon Date: Fri, 24 Jan 2025 11:42:21 +0100 Subject: [PATCH] fix custom action not working when url has a search query --- templates/layout.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/layout.html.twig b/templates/layout.html.twig index 439991a885..f37ee3f628 100644 --- a/templates/layout.html.twig +++ b/templates/layout.html.twig @@ -303,7 +303,7 @@ {% if app.request.get('query') %} {% set search_reset_url = ea_url().unset('query') %} {% if ea.usePrettyUrls %} - {% set search_reset_url = ea_url().unset('query').setController(ea.request.attributes.get('crudControllerFqcn')).setAction('index').set('page', 1) %} + {% set search_reset_url = ea_url().unset('query').setController(crudController).setAction('index').set('page', 1) %} {% endif %}