Links to different modules require relative href

This commit is contained in:
Chadtech 2021-07-10 11:14:55 -04:00
parent 9801de6be4
commit 6d00171cd7

View File

@ -247,6 +247,7 @@ fn render_sidebar<'a, I: Iterator<Item = &'a ModuleDocumentation>>(modules: I) -
let href = {
let mut href_buf = String::new();
href_buf.push('/');
href_buf.push_str(name);
href_buf
};