base on John Lavagnino 's  endnotes.sty and Ulrich Dirr's   hyperendnotes.sty , the endnotes.sty for you to create  endnote after chapter and the link is correct.