Skip to content

Commit

Permalink
fix: paginator.html.twig prepends four spaces to URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarlovi authored Apr 19, 2022
1 parent 9b2684c commit 7ee7803
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 7ee7803

Please sign in to comment.