aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-07-20 06:30:56 +0000
committerFuwn <[email protected]>2024-07-20 06:30:56 +0000
commit1df0090f7afce4562d624f822a677367d436511c (patch)
treee10cceac914360bacd320af8680b81b474566e8a /src
parentrefactor: remove all explicit clones (diff)
downloadseptember-1df0090f7afce4562d624f822a677367d436511c.tar.xz
september-1df0090f7afce4562d624f822a677367d436511c.zip
fix(html): parse base path urls
Diffstat (limited to 'src')
-rw-r--r--src/html.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/html.rs b/src/html.rs
index dc52754..9203656 100644
--- a/src/html.rs
+++ b/src/html.rs
@@ -67,6 +67,8 @@ pub fn from_gemini(
if href.contains("://") && !href.starts_with("gemini://") {
surface = true;
+ } else if !href.contains("://") && href.contains(':') {
+ href = href.to_string();
} else if !href.starts_with("gemini://") && !href.starts_with('/') {
href = format!(
"{}/{}",