I am trying to make endnotes appear in the text as [1] , [2] .... with hyperlink to the text at the end of the document. When I try to do it with footnote by following code, the appearance is correct [1], but they appear as footnotes on the same page.
\usepackage[utf8]{inputenc}
\usepackage[authordate,backend=biber,autolang=other,bibencoding=inputenc,footmarkoff]{biblatex-chicago}
\makeatletter
\renewcommand{\@makefnmark}{\makebox{\normalfont[\@thefnmark]}}
\makeatother
\usepackage[bottom]{footmisc}
\begin{document}
Text\footnote{A footnote}
\end{document}
but when I convert it to the endnote using following code, the hyperlink and their defined formatting disappears.
\usepackage{enotez}
\usepackage{hyperref}%
\let\footnote=\endnote
I want it to be like this
How to correct this problem?