Fix url_for endpoint name in product slug redirect
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 56s

Use fully qualified "market.browse.product.product_detail" instead
of "product.product_detail" which doesn't exist in the URL map.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-24 10:02:04 +00:00
parent f53d2841e9
commit d014203776

View File

@@ -68,7 +68,7 @@ def register():
canon = canonical_html_slug(raw_slug) canon = canonical_html_slug(raw_slug)
if canon != raw_slug: if canon != raw_slug:
return redirect( return redirect(
host_url(url_for("product.product_detail", slug=canon)) host_url(url_for("market.browse.product.product_detail", slug=canon))
) )
# hydrate full product # hydrate full product