marmelab / ng-admin

Add an AngularJS admin GUI to any RESTful API
http://ng-admin-book.marmelab.com/
MIT License
3.95k stars 725 forks source link

Page reload goes back to first page #1372

Open tomy2105 opened 7 years ago

tomy2105 commented 7 years ago

Prerequisites

I'm running latest version of code from github.

Description

If on list view and on second page and filters are defined (doesn't matter if they are present or not) and page is reloaded we get switched to first page.

Steps to Reproduce

http://embed.plnkr.co/mHBjj4gCKQHD2dNySwTW/

Go to users page in preview. Press next to go to second users page. After second page is displayed press refresh live preview button.

Expected behavior: Second page is displayed.

Actual behavior: First page is displayed.

I think this was introduced with https://github.com/marmelab/ng-admin/pull/1366 because updateFilters which starting with this pull is invoked on load/reload sets page to 1.

lwzm commented 6 years ago

It seems that v1.0.7 introduced this bug.