From 526d4f6e1b3d329c3e472d603325d4150ab4c52e Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 18 Feb 2026 19:18:28 +0000 Subject: [PATCH] Use coop_url for auth links in shared templates url_for('auth.account') and url_for('auth.newsletters') only work in the blog app. Other apps (cart) that render these shared templates don't have an auth blueprint. Use coop_url() so links always resolve to the blog subdomain regardless of which app renders the template. Co-Authored-By: Claude Opus 4.6 --- browser/templates/_types/auth/_nav.html | 2 +- browser/templates/_types/auth/header/_header.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/templates/_types/auth/_nav.html b/browser/templates/_types/auth/_nav.html index 3d404b8..9521a63 100644 --- a/browser/templates/_types/auth/_nav.html +++ b/browser/templates/_types/auth/_nav.html @@ -1,5 +1,5 @@ {% import 'macros/links.html' as links %} -{% call links.link(url_for('auth.newsletters'), hx_select_search, select_colours, True, aclass=styles.nav_button) %} +{% call links.link(coop_url('/auth/newsletters/'), hx_select_search, select_colours, True, aclass=styles.nav_button) %} newsletters {% endcall %}