Adjusting the previous/next link rule