From 048b0d331a468410682825a50832022d47a2dec6 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 1 Dec 2025 17:54:55 -0500 Subject: [PATCH] Fix URL encoding for book names with spaces in index pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated both commentary and cross-references index templates to use: - Proper URL format: /book/{book}/chapter/{chapter}/verse/{verse} - urlencode filter to handle spaces in book names (e.g., "1 Chronicles") Previously used incorrect format /book/{book}/{chapter}:{verse} which caused 422 errors for books with spaces in their names. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- kjvstudy_org/templates/commentary_index.html | 2 +- kjvstudy_org/templates/cross_references_index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kjvstudy_org/templates/commentary_index.html b/kjvstudy_org/templates/commentary_index.html index 06b801a..7d50f84 100644 --- a/kjvstudy_org/templates/commentary_index.html +++ b/kjvstudy_org/templates/commentary_index.html @@ -26,7 +26,7 @@ Chapter {{ chapter }}: {% for verse in verses %} - {{ verse }}{% if not loop.last %},{% endif %} + {{ verse }}{% if not loop.last %},{% endif %} {% endfor %} ({{ verses|length }} {% if verses|length == 1 %}verse{% else %}verses{% endif %}) diff --git a/kjvstudy_org/templates/cross_references_index.html b/kjvstudy_org/templates/cross_references_index.html index 24b9226..11deca0 100644 --- a/kjvstudy_org/templates/cross_references_index.html +++ b/kjvstudy_org/templates/cross_references_index.html @@ -27,7 +27,7 @@ Chapter {{ chapter }}: {% for verse_data in verses %} - + {{ verse_data.verse }}{{ verse_data.ref_count }} {% if not loop.last %} {% endif %} {% endfor %}