From f1b9d1397eb847ece55c8edcca59b7fbd964e35e Mon Sep 17 00:00:00 2001 From: filipcro Date: Thu, 27 Dec 2018 14:39:28 +0100 Subject: [PATCH] Fixed sorting path while sorting by position --- .../ShopBundle/Resources/views/Product/Index/_sorting.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Index/_sorting.html.twig b/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Index/_sorting.html.twig index 685bdf4aaa3..63f3f45aea5 100644 --- a/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Index/_sorting.html.twig +++ b/src/Sylius/Bundle/ShopBundle/Resources/views/Product/Index/_sorting.html.twig @@ -7,7 +7,7 @@ {% set criteria = app.request.query.get('criteria', {}) %} -{% set default_path = path(route, route_parameters|merge({'criteria': criteria})) %} +{% set default_path = path(route, route_parameters|merge({'sorting': null, 'criteria': criteria})) %} {% set from_a_to_z_path = path(route, route_parameters|merge({'sorting': {'name': 'asc'}, 'criteria': criteria})) %} {% set from_z_to_a_path = path(route, route_parameters|merge({'sorting': {'name': 'desc'}, 'criteria': criteria})) %} {% set oldest_first_path = path(route, route_parameters|merge({'sorting': {'createdAt': 'asc'}, 'criteria': criteria})) %}