Skip to content

Commit 200beff

Browse files
committed
bug #6764 fix custom action not working when url has a search query (allan-simon)
This PR was squashed before being merged into the 4.x branch. Discussion ---------- fix custom action not working when url has a search query the controller was not retrieved from the ugly url <!-- Thanks for your contribution! If you are proposing a new feature that is complex, please open an issue first so we can discuss about it. Note: all your contributions adhere implicitly to the MIT license --> Commits ------- d00a918 fix custom action not working when url has a search query
2 parents 9300c67 + d00a918 commit 200beff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
{% if app.request.get('query') %}
304304
{% set search_reset_url = ea_url().unset('query') %}
305305
{% if ea.usePrettyUrls %}
306-
{% set search_reset_url = ea_url().unset('query').setController(ea.request.attributes.get('crudControllerFqcn')).setAction('index').set('page', 1) %}
306+
{% set search_reset_url = ea_url().unset('query').setController(crudController).setAction('index').set('page', 1) %}
307307
{% endif %}
308308
<a href="{{ search_reset_url }}" class="content-search-reset">
309309
<twig:ea:Icon name="internal:xmark" />

0 commit comments

Comments
 (0)