Skip to content

Commit

Permalink
Add back potentially useful code as comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokhoi committed Sep 10, 2024
1 parent b4f1109 commit 373e736
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tree/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ impl<'a> LinkLocation<'a> {
return LinkLocation::Url(link);
}

// // Check for local links starting with '/'
// if link_str.starts_with('/') {
// link_str = &link_str[1..];
// }

// Take only the first segment for page
link_str = link_str.split('#').collect::<Vec<&str>>()[0]
.split('/')
Expand Down

0 comments on commit 373e736

Please sign in to comment.