Skip to content

Commit 1cb447e

Browse files
committed
Fix the last path not showing up in breadcrumps
1 parent 42f0e71 commit 1cb447e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/types.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ impl<'a> Content for Ancestors<'a> {
108108
.render(encoder)?;
109109
previous = i + sep.len();
110110
}
111-
if !s.contains(is_separator) {
111+
if previous != 0 {
112+
section
113+
.with(&Segment(&s[previous..], &s))
114+
.render(encoder)?;
115+
} else {
112116
section.with(&Segment(s, s)).render(encoder)?;
113117
}
114118
Ok(())

0 commit comments

Comments
 (0)