From 373e736ff32af4b6a410583f373b78534dd58737 Mon Sep 17 00:00:00 2001 From: Zokhoi <20432565+Zokhoi@users.noreply.github.com> Date: Wed, 11 Sep 2024 06:45:02 +0800 Subject: [PATCH] Add back potentially useful code as comment --- src/tree/link.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tree/link.rs b/src/tree/link.rs index 85de3243..c8217b2c 100644 --- a/src/tree/link.rs +++ b/src/tree/link.rs @@ -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::>()[0] .split('/')