Fixed the next comment page link creation function