This is the same bug that I reported for the 7.x-3.x version of Views module.
On a view with AJAX enabled, and an exposed filter that has default values, if the user chooses to leave the filter's values blank, the view respects user's choise only on the first page of the results, whereas if the user moves to next pages, the result comes back different. This sometimes causes empty pages without pager.
Steps to reproduce
- Install Drupal 8.0.3-dev
- Create the following Article nodes:
- Import the view that I paste at the end of that message.
- Visit the new view's page: /admin/helper-articles
- Type 'article' on exposed filter "title" and DELETE the values from the exposed filter nid (delete both 5 and 10). Click on Apply.
nid title 1 My test article 2 A beautiful day 3 My article is super 4 Master of puppets 5 Fear of the dark 6 This article will fail 7 Awesome article about drupal
You will see that:
- You get 3 out of 4 results: nids 3, 6 and 7
- Exposed filter Title is 'article' as you typed
- Exposed filter Nid has blank values as you deleted them.
But if you click on the 2nd page on the pager, or the 'next' button', you get an empty view: no results and no pager!
Also you can notice that now the exposed filter 'nid' contains the default values 5 and 10.
To make it more clear, make a small change: Edit the view, and change the pager to 1 item per page.
Visit the view page.
You have 3 results, one on each of the 3 pages.
Now type again 'article' into the title filter, and delete both values on nid. Click Apply.
You get a result of 4 nodes, one on each of the 4 pages.
If you visit page 2 (or 'next'), now you don't get an empty page, because there actually exists a 2nd page, but as you can see, the number of pages is reduced from 4 to 2.
I propose a patch that solves the issue.
The view that was used to test
Please check attached yml file