fix: use cart_url() instead of url_for('cart.view_cart') for cross-app redirect
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 57s

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 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-10 21:45:54 +00:00
parent 6459e2406e
commit 6a378a2425

View File

@@ -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("/"))