Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Pagination changes current page to 1 when rendered #4755

Closed
ghost opened this issue Oct 28, 2015 · 3 comments
Closed

Pagination changes current page to 1 when rendered #4755

ghost opened this issue Oct 28, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 28, 2015

I update URL page parameter when pager is clicked
to something like this: http://localhost/#?q=security&limit=10&page=2

When this URL is opened in a new page I am reading the page parameter from query and update $scope.currentPage so the page is switched to 2. This is working but after a while currentPage changes back to 1. It is not my code so I suspect pagination scripts.

here is plunker however I cannot add URL hash params in pluker and refresh page

@ghost
Copy link
Author

ghost commented Oct 28, 2015

This is related to #2173

@wesleycho
Copy link
Contributor

I don't see any pagination use - please put it in your Plunker if you have a reproduction.

It should be noted that there is a known issue previously reported in #2956 that may be related to your problem.

@wesleycho
Copy link
Contributor

Assuming that the aforementioned issue is the problem, this is now fixed via 30099a0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant