Problem/Motivation

Pager doesn't work correctly on a page consisting of two blocks of which only one with ajax.
Pager of the block with ajax reproduces the choice of the pager of the block without ajax.

Steps to reproduce

  1. Create 6 pieces of contents.
  2. Create a view to display these content and select Pager -> Use pager: Full - Paged, 2 items
  3. Create a view block 'block without ajax'
  4. Create a view block 'block with ajax' and select Advanced -> Other -> Use AJAX: Yes
  5. Place block 'block without ajax' and 'block with ajax' on 'Content' region ('Block Layout')
  6. Visit page with these 2 blocks
  7. Click on pager 'page 2' of 'block without ajax'

Expected behavior

'block without ajax' display page 2
'block with ajax' display page 1

Actual behavior

'block without ajax' display page 2
'block with ajax' display page 2 as well

Comments

Thib created an issue. See original summary.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

ammar qala’s picture

Open your view -> pager settings -> change the "Pager ID"

thib’s picture

Ok, thank you @a.quala, I didn't know this trick.
All works fine now !!

ammar qala’s picture

Status: Active » Closed (works as designed)