Fix issue where pager link was getting getting incorrectly activated on the last planning page [fixes #77644948]