From e346920907d1dec22d2dcc19b0dc483b9a94810b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20BRANSTETT?= Date: Wed, 9 Mar 2022 11:18:28 +0100 Subject: [PATCH] Also take in account mdbook redirect in linkchecker --- src/tools/linkchecker/main.rs | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/tools/linkchecker/main.rs b/src/tools/linkchecker/main.rs index 46daaf42883f0..c9b1649200d9c 100644 --- a/src/tools/linkchecker/main.rs +++ b/src/tools/linkchecker/main.rs @@ -489,16 +489,22 @@ fn is_exception(file: &Path, link: &str) -> bool { /// If the given HTML file contents is an HTML redirect, this returns the /// destination path given in the redirect. fn maybe_redirect(source: &str) -> Option { - const REDIRECT: &str = "

Redirecting to Redirecting to Redirecting to... (source: &str, attr: &str, mut f: F) {