From 7ee780322cd8a051af548763c3d517e62130f6a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Karlovi=C4=87?= Date: Tue, 19 Apr 2022 11:52:55 +0200 Subject: [PATCH] fix: paginator.html.twig prepends four spaces to URLs --- .../Resources/views/Common/paginator.html.twig | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/CoreShop/Bundle/FrontendBundle/Resources/views/Common/paginator.html.twig b/src/CoreShop/Bundle/FrontendBundle/Resources/views/Common/paginator.html.twig index bdb314457f..4dbc1a3fa1 100644 --- a/src/CoreShop/Bundle/FrontendBundle/Resources/views/Common/paginator.html.twig +++ b/src/CoreShop/Bundle/FrontendBundle/Resources/views/Common/paginator.html.twig @@ -2,16 +2,15 @@ {% set pages = paginator.getPaginationData %} {% macro generate_seo_pagination_url(page) %} - {% apply spaceless %} - {% if page == 1 %} - {% set pageUrl = pimcore_url({ page: null }) %} - {% else %} - {% set pageUrl = pimcore_url({ page: page }) %} - {% endif %} +{% apply spaceless %} + {% if page == 1 %} + {% set pageUrl = pimcore_url({ page: null }) %} + {% else %} + {% set pageUrl = pimcore_url({ page: page }) %} + {% endif %} - {{ pageUrl }} - {#{{ optimizedUrl }}#} - {% endapply %} + {{ pageUrl }} +{% endapply %} {% endmacro %} {% if pages.pageCount > 1 %}