Skip to content

web search done right

homepages should have empty url query part

Mikkel Denker1abf64591872
diff --git a/core/src/webpage/mod.rs b/core/src/webpage/mod.rs
index e691186d..46531e8b 100644
--- a/core/src/webpage/mod.rs
+++ b/core/src/webpage/mod.rs
@@ -1497,7 +1497,7 @@ impl Html {
}
pub fn is_homepage(&self) -> bool {
- self.url().path() == "/"
+ self.url().path() == "/" && self.url().query().is_none()
}
}