Wrong page links with hyperref and manyfoot

hyperref links to the wrong page for footnotes generated by manyfoot.

\documentclass{article}
\usepackage{manyfoot}
\usepackage{hyperref}
\DeclareNewFootnote{C}
\begin{document}
\tableofcontents
\clearpage
\section{Introduction}
\clearpage
\section{Background}
\end{document}


When the above code is compiled using pdflatex, the footnotemark is always hyperlinked (in PDF) to "Page 1", instead of the page where the footnotetext appears.

This code leads to a warning

pdfTeX warning (dest): name{Hfootnote.1} has been referenced but does not exist, replaced by a fixed one

and solved in a related issue by Ulrike Fischer

The same solution of defining a destination works for this as well. Hopefully, this will be fixed in the future releases of manyfoot.

\usepackage{etoolbox}
\makeatletter
\newcommand\manyfoottarget{\makebox[0pt][r]{\hypertarget{Hfootnote.\theHfootnote

• Please write a bug report to the maintainer of package manyfoot ... – Mensch Jul 14 '19 at 3:25