Added context awareness for previous/next links.