Following with the discussion in Making endnotes clickable links with hyperref, I've the following issue.
If I try to use this method to enable hyperlinks with endnote, everything works fine. But, if in my document I reset the endnote counter to zero at some point(s) (as I'd do if I had several chapters, for instance), when clicking the endnotes inserted after resetting the counter, they get referenced to the endnote list corresponding to the first bunch of endnotes.
A MWE would be:
\documentclass[pdftex]{article}
\usepackage{endnotes}
\usepackage{hyperref}
\usepackage{hyperendnote}
\begin{document}
\noindent
FIRST ENDNOTE\endnote{blabla one}
\newpage A page between two notes. \newpage
\addtoendnotes{\newpage}% so both notes will be on separate pages for testing
\theendnotes
\setcounter{endnote}{0}
Another page with another endnote\endnote{blabla two}
\newpage blabla \newpage
\theendnotes
\end{document}
A related discussion can be found on comp.text.tex, but it seems that it was resolved for the memoir class, and using pagenotes (as supplied by the memoir class), not endnotes.