preserve pagination data in 404