From 6a378a24255026fd498bb09a51bf2fc30f6b94e2 Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 10 Feb 2026 21:45:54 +0000 Subject: [PATCH] fix: use cart_url() instead of url_for('cart.view_cart') for cross-app redirect The market app doesn't have a cart blueprint registered, so url_for() would fail. Uses the cross-app cart_url() helper instead. Co-Authored-By: Claude Opus 4.6 --- bp/product/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bp/product/routes.py b/bp/product/routes.py index 29afff7..0ae0014 100644 --- a/bp/product/routes.py +++ b/bp/product/routes.py @@ -242,7 +242,8 @@ def register(): ) # normal POST: go to cart page - return redirect(url_for("cart.view_cart")) + from shared.urls import cart_url + return redirect(cart_url("/"))