Avoid linking to page 0
Fix ternary operator
Merge pull request #62 from ajgarlag/fix-pager-last-link

Avoid linking to page 0