When the table of contents go over two pages I get this warning:
destination with the same identifier (name{page.i}) has been already used, duplicate ignored \relax l.36 ...on}{\numberline {5.6}test}{9}{section.5.6} [1])pdfTeX warning (ext4): d
If the document is not so long we don't get a warning, for example:
\documentclass[a4paper]{memoir}
\title{Test}
\usepackage{hyperref}
\begin{document}
\frontmatter
\begin{titlingpage}
\maketitle
\end{titlingpage}
\tableofcontents
\mainmatter
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\end{document}
However if we increase the document so that the contents go over several pages we get the warning, an example of a document giving the warning is:
\documentclass[a4paper]{memoir}
\title{Test}
\usepackage{hyperref}
\begin{document}
\frontmatter
\begin{titlingpage}
\maketitle
\end{titlingpage}
\tableofcontents
\mainmatter
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\chapter{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\section{test}
\end{document}
Is there a way to fix this?