Improve jump-to-page to handle lastpage fragment.