fix the first page bug

In some situation,without `page` causes `url_for` error