Please consider this MWE:
\documentclass[paper=a6,fontsize=11pt]{scrbook}
\usepackage{lipsum}
\usepackage{hyperref}
\begin{document}
\chapter{My Chapter}
\lipsum[2] \url{https://example.com/}
\end{document}
Using pdflatex, this results in:
Where the boxes for the current page footer and next page header are part of the running link.
This is similar to Why is there an extra link box for long URLs when using hyperref and lineno?, and since I'm using pdflatex, it looks like I should use \pdfrunninglinkoff before the footer box and \pdfrunninglinkon after the header box, but how can I find the correct boxes to patch?

\DocumentMetadata{testphase=new-or-1}see https://tex.stackexchange.com/a/578405/2388 (it doesn't catch everything, if you have footnotes that split over pages you can still get such links.) – Ulrike Fischer Dec 31 '23 at 14:47\documentclass[a5paper]{book} \usepackage{lipsum} \usepackage{hyperref} \begin{document} \chapter{My Chapter} \lipsum[11]\par \lipsum[11] \url{https://example.com/somewhere/here/or/there} \end{document}– cabohah Jan 01 '24 at 12:06\DocumentMetadata{testphase=new-or-1}worked in my document. The oldxpatchsolution from https://tex.stackexchange.com/a/578405/2388 worked too. – rmolina Jan 02 '24 at 14:22