Correct some snippet URL generation to make sure previous/next link works