From e19b6c6ce1038eb5845db2d6d3ae57c127abc4b0 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 10 Feb 2026 09:53:32 +0000 Subject: [PATCH] fix: use plain links for cross-app calendar navigation HTMX blocks cross-origin hx-get requests, causing htmx:invalidPath. Calendar links to events service must be regular tags without hx-get. Co-Authored-By: Claude Opus 4.6 --- suma_browser/templates/_types/post/admin/_nav.html | 8 +++++--- .../templates/_types/post/admin/_nav_entries.html | 5 ----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/suma_browser/templates/_types/post/admin/_nav.html b/suma_browser/templates/_types/post/admin/_nav.html index 93b8813..2b26b9d 100644 --- a/suma_browser/templates/_types/post/admin/_nav.html +++ b/suma_browser/templates/_types/post/admin/_nav.html @@ -1,7 +1,9 @@ {% import 'macros/links.html' as links %} -{% call links.link(events_url('/calendars/'), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - calendars -{% endcall %} + {% call links.link(url_for('blog.post.admin.entries', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} entries {% endcall %} diff --git a/suma_browser/templates/_types/post/admin/_nav_entries.html b/suma_browser/templates/_types/post/admin/_nav_entries.html index 84ae8f3..dc9fdf4 100644 --- a/suma_browser/templates/_types/post/admin/_nav_entries.html +++ b/suma_browser/templates/_types/post/admin/_nav_entries.html @@ -32,11 +32,6 @@ {% set local_href=events_url('/calendars/' + calendar.slug + '/') %}
{{calendar.name}}