Generate next-page parameters on the server.

Make use of them in the web-interface.
This simplifies adding other clients.