Restful icon indicating copy to clipboard operation
Restful copied to clipboard

Response factory changes current page when generating links

Open jkavalik opened this issue 6 years ago • 0 comments

ResponseFactory::getNextPageUrl() changes the current page, so we are getting wrong results by using the paginator.

Either it should change the page back, or use a clone of the paginator.

Moreover - when used with Nette, the response gets created too early, so the total count cannot be properly set - and it means throwing and swallowing at least one exception on each request where at least one of limit/offset query params is not set.

jkavalik avatar Feb 05 '19 12:02 jkavalik