diff --git a/src/preprocess/links.rs b/src/preprocess/links.rs index edd97ba9..ab74aa09 100644 --- a/src/preprocess/links.rs +++ b/src/preprocess/links.rs @@ -46,7 +46,7 @@ impl Preprocessor for LinkPreprocessor { book.for_each_mut(|section: &mut BookItem| { if let BookItem::Chapter(ref mut ch) = *section { - if let Some(ref chapter_path) = ch.path { + if let Some(ref chapter_path) = ch.source_path { let base = chapter_path .parent() .map(|dir| src_dir.join(dir))