I'm using the hyperref package to write an unusual document. It has clickable URL links in the section titles. Unfortunately, when clicking on the section title in the table of contents, one is not brought to that part of the document where the section starts but instead to the linked website.
Is it possible to turn off URL links within a group environment? Here's an MWE:
\documentclass{article} \usepackage[% unicode, colorlinks=true, linkcolor=blue, urlcolor=blue, citecolor=blue]% {hyperref} \begin{document} \begingroup % Turn off URL links here \tableofcontents \endgroup \section{\href{www.google.com}{Google}} \end{document}