Update pagination.php

Update includes 2 minor code changes to fix non-canonical "page 1" URLs.
Now any pager-link to the "first page" or "page 1" will point to a clean/canonical URL.