Fix url_for endpoint name in product slug redirect
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 56s
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user