2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-05 00:00:58 +00:00

fix for selectors without leading /

This commit is contained in:
dvkt 2019-12-27 00:22:56 -08:00
parent 0331963758
commit a1cbff1614

View File

@ -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,