[Tex/LaTex] Hyperref Link Spans a Pagebreak, Looks Ugly

header-footerhyperrefpage-breaking

I'm using hyperref for links in pdflatex and I have the following problem: when a bibliography citation spans across a page-break (which usually occurs with long author names), then an additional green link frame is visible at the footer and the link links the whole header of the following page.

Code (with the list of all packages I'm using):

\documentclass[a4paper,12pt,oneside]{book}

\synctex=1 % synchronize with texmaker

\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[left=3.5cm, right=2cm, top=3.5cm, bottom=2.5cm]{geometry} % sizes
\usepackage{newcent}  % font, Century Schoolbook
\usepackage{graphicx} % include graphics
\usepackage{setspace} % control line spacing
\usepackage{amssymb}  % math
\usepackage{amsmath}  % math
\usepackage{amsthm}   % theorems
\usepackage{cite}     % numeric citations
\usepackage{epigraph} % quotations
\usepackage{booktabs} % nice looking tables
\usepackage{url}      % recognize urls
\usepackage{hyperref} % links in PDF
\usepackage{enumitem} % enhanced enumerations
\usepackage{fancyhdr} % fancy headers and footers
\usepackage{color}    % allow colors
\usepackage{pdfpages} % include assignment PDFs
\usepackage{texshade} % sequence alignments


\usepackage{lipsum} % just for the sake of this example

\fancyhead{}
\fancyhead[LO]{\nouppercase{\textsc{\leftmark}}}
\fancyhead[RO]{\nouppercase{\textsc{\thepage}}}
\fancyfoot{}
\setlength{\headheight}{15pt}

\begin{document}

\onehalfspacing
\mainmatter
\pagestyle{fancy}

\chapter{An Example Chapter}

\lipsum
Stuff stuff stuff stuff stuff stuff
Stuff stuff stuff stuff stuff stuff
Stuff stuff stuff
\cite{reference}
Stuff stuff stuff stuff stuff stuff
Stuff stuff stuff stuff stuff stuff
Stuff stuff stuff

\bibliographystyle{apalike}
\bibliography{references}

\end{document}

BibTeX file references.bib:

@Article{reference,
   Author="LongSurnameOfTheFirstAuthor, D.  and LongSurnameOfTheSecondAuthor, R. ",
   Title="Example text",
   Journal="Journal of example articles",
   Year="2004",
   Volume="21",
   Number="12",
   Pages="2326--2339",
   Month="Dec",
   Note={[DOI:\href{http://www.example.com}{example}]}
}

Output:

How can I get rid of this?

I'm using pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian) and BibTeX 0.99c (TeX Live 2009/Debian).

Best Answer

This bad behavior is a very old misfeature of hyperref that, unfortunately, hasn't yet been solved. See http://tug.org/applications/hyperref/ftp/README

12 TODO
[...]
* PostScript driver: the current implementation doesn't relly support nested links. The start positions should be remembered in a stack, but there are complications with page breaks.
* ...

This happens also with pdflatex

Related Question