From 0d40dfaeca7dbdc8adeaf7b071bfd9faccb74511 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 24 Feb 2026 10:24:49 +0000 Subject: [PATCH] =?UTF-8?q?Rename=20product=20blueprint=20URL=20param=20sl?= =?UTF-8?q?ug=20=E2=86=92=20product=5Fslug=20in=20templates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoids collision with app-level url_value_preprocessor that pops "slug" for page-level routing. All url_for() calls for product endpoints now use product_slug= instead of slug=. Co-Authored-By: Claude Opus 4.6 --- browser/templates/_types/browse/_admin.html | 2 +- browser/templates/_types/browse/_product_card.html | 2 +- browser/templates/_types/browse/like/button.html | 2 +- browser/templates/_types/product/admin/header/_header.html | 2 +- browser/templates/_types/product/admin/index.html | 2 +- browser/templates/_types/product/header/_header.html | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/browser/templates/_types/browse/_admin.html b/browser/templates/_types/browse/_admin.html index 053691d..e3cf3a2 100644 --- a/browser/templates/_types/browse/_admin.html +++ b/browser/templates/_types/browse/_admin.html @@ -2,6 +2,6 @@ {% if g.rights.admin %} {% from 'macros/admin_nav.html' import admin_nav_item %} {{admin_nav_item( - url_for('market.browse.product.admin', slug=slug) + url_for('market.browse.product.admin', product_slug=slug) )}} {% endif %} \ No newline at end of file diff --git a/browser/templates/_types/browse/_product_card.html b/browser/templates/_types/browse/_product_card.html index f9bc980..b923bc5 100644 --- a/browser/templates/_types/browse/_product_card.html +++ b/browser/templates/_types/browse/_product_card.html @@ -2,7 +2,7 @@ {% import '_types/product/prices.html' as prices %} {% set prices_ns = namespace() %} {{ prices.set_prices(p, prices_ns) }} -{% set item_href = url_for('market.browse.product.product_detail', slug=p.slug)|host %} +{% set item_href = url_for('market.browse.product.product_detail', product_slug=p.slug)|host %}
{# ❤️ like button overlay - OUTSIDE the link #} {% if g.user %} diff --git a/browser/templates/_types/browse/like/button.html b/browser/templates/_types/browse/like/button.html index de147a4..426bdc1 100644 --- a/browser/templates/_types/browse/like/button.html +++ b/browser/templates/_types/browse/like/button.html @@ -1,6 +1,6 @@