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:
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…
Reference in New Issue
Block a user