From e72d632cab2deb557787dff44351f0d1581291a4 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 4 Nov 2025 09:56:42 +0100 Subject: [PATCH] workspace:chore - fix edit uri computation --- crates/zensical/src/structure/page.rs | 2 +- python/zensical/extensions/search.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/zensical/src/structure/page.rs b/crates/zensical/src/structure/page.rs index 056e48f..33d2ee4 100644 --- a/crates/zensical/src/structure/page.rs +++ b/crates/zensical/src/structure/page.rs @@ -104,6 +104,7 @@ impl Page { // Determine whether to use directory URLs let use_directory_urls = config.project.use_directory_urls; + let file_uri = id.location().into_owned(); // Create identifier builder, as we need to change the context in order // to copy the file over to the site directory @@ -160,7 +161,6 @@ impl Page { // variants are supported by MkDocs, so we mirror behavior for now let edit_url = repo_url.clone().and_then(|repo_url| { edit_uri.clone().map(|uri| { - let file_uri = id.location().replace(".html", ".md"); if uri.starts_with("https://") { format!("{uri}/{file_uri}") } else { diff --git a/python/zensical/extensions/search.py b/python/zensical/extensions/search.py index 7fd53f5..52d3644 100644 --- a/python/zensical/extensions/search.py +++ b/python/zensical/extensions/search.py @@ -34,7 +34,7 @@ from markdown.postprocessors import Postprocessor class SearchProcessor(Postprocessor): """ - PostProcessor that extracts searchable content from the rendered HTML. + Post processor that extracts searchable content from the rendered HTML. """ def __init__(self, md):