about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfunkill <funkill2@gmail.com>2015-06-06 23:27:35 +0300
committerfunkill <funkill2@gmail.com>2015-06-06 23:27:35 +0300
commit5f5a84a59c38f8b8bfd9984917690f6db25a3aff (patch)
treee918703d1aa7fa0a171879b7eeb85863ab956ab9
parentbfd072db45d07a7c0ed2248737ef3c61131729fc (diff)
downloadrust-5f5a84a59c38f8b8bfd9984917690f6db25a3aff.tar.gz
rust-5f5a84a59c38f8b8bfd9984917690f6db25a3aff.zip
fix path in toc links
-rw-r--r--src/rustbook/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustbook/build.rs b/src/rustbook/build.rs
index 31c973214a1..5ffb9b007d0 100644
--- a/src/rustbook/build.rs
+++ b/src/rustbook/build.rs
@@ -59,7 +59,7 @@ fn write_toc(book: &Book, current_page: &BookItem, out: &mut Write) -> io::Resul
 
         try!(writeln!(out, "<li><a {} href='{}'><b>{}</b> {}</a>",
                  class_string,
-                 item.path_to_root.join(&item.path.with_extension("html")).display(),
+                 current_page.path_to_root.join(&item.path).with_extension("html").display(),
                  section,
                  item.title));
         if !item.children.is_empty() {