diff --git a/_includes/paginator.html b/_includes/paginator.html index bffa0794678e..c24d4909f488 100644 --- a/_includes/paginator.html +++ b/_includes/paginator.html @@ -1,6 +1,7 @@ {% if paginator.total_pages > 1 %} - {% assign first_page_path = paginator.first_page_path | default: site.paginate_path | replace: 'page:num', '' | replace: '//', '/' | relative_url %} + {% assign paginate_path_last = site.paginate_path | split: '/' | last %} + {% assign first_page_path = paginator.first_page_path | default: site.paginate_path | replace: paginate_path_last, '' | replace: '//', '/' | relative_url %} {% comment %} Link for previous page {% endcomment %} {% if paginator.previous_page %}