I try to generate a toc of parts with clickable links. I found this, but unfortunately it does not generate hyperlinks. I found the following suggestion that generates clickable links, but all these links refer to the parttoc itself.
\documentclass{beamer}
\usepackage[ngerman]{babel}
\usepackage{blindtext}
\newcommand{\dummyFrame}[1][1]{\begin{frame}{Test}\blindtext[#1]\end{frame}}
\usepackage{hyperref}
% for the list of parts
\makeatletter
\AtBeginPart{%
\addtocontents{toc}{%
\protect\beamer@partintoc{\the\c@part}{\beamer@partnameshort}{\the\c@page}%
}%
% \setcounter{framenumber}{0}
\frame{\partpage}
}
%% number, shortname, page.
\providecommand\beamer@partintoc[3]{%
\ifnum\c@tocdepth=-1\relax
% requesting onlyparts.
\makebox[6em]{Einheit #1:} \textcolor{green!30!blue}{\hyperlink{#2}{#2}}
\par
\fi
}
\define@key{beamertoc}{onlyparts}[]{%
\c@tocdepth=-1\relax
}
\makeatother%
\begin{document}
\begin{frame}{Inhaltsübersicht}
\tableofcontents[onlyparts]
\end{frame}
\part{MyPart One}
\dummyFrame
\part{MyPart Two}
\dummyFrame
\dummyFrame
\part{MyPart Three}
\dummyFrame
\dummyFrame
\end{document}
How can I make these links point to the right frame? Thanks in advance for any suggestions