From be9563f0d3fb3e3e2eec7b519718966deb42c3f5 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 10 Feb 2026 09:55:27 +0000 Subject: [PATCH] fix: remove all hx-get from cross-domain links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Converts remaining links.link() calls with cross-app URLs to plain tags: auth→cart orders, post_data→events, calendars header→events. Co-Authored-By: Claude Opus 4.6 --- suma_browser/templates/_types/auth/_nav.html | 8 +++++--- .../templates/_types/calendars/header/_header.html | 8 +++----- .../templates/_types/post_data/header/_header.html | 10 ++++------ 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/suma_browser/templates/_types/auth/_nav.html b/suma_browser/templates/_types/auth/_nav.html index ffa2730..3d404b8 100644 --- a/suma_browser/templates/_types/auth/_nav.html +++ b/suma_browser/templates/_types/auth/_nav.html @@ -2,6 +2,8 @@ {% call links.link(url_for('auth.newsletters'), hx_select_search, select_colours, True, aclass=styles.nav_button) %} newsletters {% endcall %} -{% call links.link(cart_url('/orders/'), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - orders -{% endcall %} + diff --git a/suma_browser/templates/_types/calendars/header/_header.html b/suma_browser/templates/_types/calendars/header/_header.html index 5c69931..d0b5b5a 100644 --- a/suma_browser/templates/_types/calendars/header/_header.html +++ b/suma_browser/templates/_types/calendars/header/_header.html @@ -1,12 +1,10 @@ {% import 'macros/links.html' as links %} {% macro header_row(oob=False) %} {% call links.menu_row(id='calendars-row', oob=oob) %} - {% call links.link(events_url('/calendars/'), hx_select_search) %} + -
- Calendars -
- {% endcall %} +
Calendars
+
{% call links.desktop_nav() %} {% include '_types/calendars/_nav.html' %} {% endcall %} diff --git a/suma_browser/templates/_types/post_data/header/_header.html b/suma_browser/templates/_types/post_data/header/_header.html index 4754eb8..0b4377b 100644 --- a/suma_browser/templates/_types/post_data/header/_header.html +++ b/suma_browser/templates/_types/post_data/header/_header.html @@ -1,12 +1,10 @@ {% import 'macros/links.html' as links %} {% macro header_row(oob=False) %} {% call links.menu_row(id='post_data-row', oob=oob) %} - {% call links.link(events_url('/calendars/'), hx_select_search) %} - -
- data -
- {% endcall %} + + +
data
+
{% call links.desktop_nav() %} {#% include '_types/post_data/_nav.html' %#} {% endcall %}