When only the page.summary is shown in a section, its footnote-references are shown but the links are broken if the site is configured with bottom_footnotes = true.
I believe it would make sense to strip the footnote references altogether from the summary in such cases. Maybe the markdown filter could take an additional optional parameter to avoid rendering footnotes altogether?
TL;DR: the regular expression that was locating footnote-references for deletion in summarywasn’t up to date with the introduction of an id attribute, for back-references.