Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

fix(seo): preserve trailing-slash identity in live checks

Qiue32db6e3c92e
diff --git a/scripts/seo/verify_live.py b/scripts/seo/verify_live.py
index 6257cec39..4f2fb4b65 100755
--- a/scripts/seo/verify_live.py
+++ b/scripts/seo/verify_live.py
@@ -215,7 +215,7 @@ def check_one(url: str, home_sha: str | None, timeout: int) -> Result:
"served as itself (rule 63)")
if res.canonical is None:
res.failures.append("served page has no <link rel=canonical> (rule 22)")
- elif res.canonical.rstrip("/") != url.rstrip("/"):
+ elif res.canonical != url:
res.failures.append(
f"canonical {res.canonical} != requested {url} (rule 22)")
return res