fix for selectors without leading /

pull/6/head
dvkt 4 years ago
parent 0331963758
commit a1cbff1614

@ -650,7 +650,11 @@ impl Menu {
}
// selector
if parts.len() > 1 {
url.push_str(parts[1]);
let mut sel = parts[1].to_string();
if !sel.starts_with('/') {
sel.insert(0, '/');
}
url.push_str(&sel);
}
lines.push(Line {
name,

Loading…
Cancel
Save