The following patch should work:
\usepackage{etoolbox}
\makeatletter
\def\process@contentsline#1#2{#1#2\hyper@linkstart{link}{\toc@link@target}\bgroup}
\patchcmd{\contentsline}{\hyper@linkstart{link}{#4}{#2}\hyper@linkend}{\def\toc@link@target{#4}\process@contentsline#2\egroup\hyper@linkend}{}{}
\patchcmd{\contentsline}{\hyper@linkstart{link}{#4}{#2}\hyper@linkend}{\def\toc@link@target{#4}\process@contentsline#2\egroup\hyper@linkend}{}{}
\makeatother
Insert this code after having loaded the hyperref
package. It patches hyperref
's version of the contentsline
macro (two times, as the part to be replaced occurs twice):
Instead of calling the \hyper@linkstart
command which creates the clickable link directly, the newly created \process@contentsline
macro is called. It outputs its two arguments directly, without a link - these create the section number. Afterwards, it starts the link which will contain the rest of the text of the contents line.
