Skip to content

Commit 3696884

Browse files
committed
fix relative links
1 parent 9037c55 commit 3696884

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/tab.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,8 @@ impl Tab {
477477
}
478478
fn parse_link(&self, link: &str) -> Result<Url, url::ParseError> {
479479
let imp = self.imp();
480-
let current_url = imp
481-
.history
482-
.borrow_mut()
483-
.last()
484-
.expect("History item not found")
485-
.url
486-
.clone();
480+
let current_url = Url::parse(&imp
481+
.url.borrow())?;
487482
let link_url = Url::options().base_url(Some(&current_url)).parse(link)?;
488483
Ok(link_url)
489484
}

0 commit comments

Comments
 (0)