From 07560745239a8c40105d92a973c24460fcbe68c1 Mon Sep 17 00:00:00 2001 From: Dominique Hazael-Massieux Date: Thu, 4 Apr 2024 09:40:41 +0200 Subject: [PATCH] Ignore links to PDF part of #508 --- src/lib/study-backrefs.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/study-backrefs.js b/src/lib/study-backrefs.js index 292caaa3..508f160a 100644 --- a/src/lib/study-backrefs.js +++ b/src/lib/study-backrefs.js @@ -248,6 +248,12 @@ function studyBackrefs (edResults, trResults = [], htmlFragments = {}) { shortname = spec.links.rawlinks[link].specShortname; } else { let nakedLink = link; + + // Ignoring links to PDF specs + if (nakedLink.endsWith('.pdf')) { + return; + } + if (nakedLink.endsWith('.html')) { nakedLink = nakedLink.replace(/\/(Overview|overview|index)\.html$/, '/'); }