Fixes pager for lessons.

Also fixes bug where incorrect permalink was getting used on lesson archive
page.