diff --git a/app/exceptions/handler.py b/app/exceptions/handler.py index 84fbbee4..3ef58ac0 100644 --- a/app/exceptions/handler.py +++ b/app/exceptions/handler.py @@ -434,14 +434,19 @@ def _redirect_to_login(request: Request) -> RedirectResponse: base_url = "/" if access_method == "path" and store: - full_prefix = ( - store_context.get("full_prefix", "/store/") - if store_context - else "/store/" - ) - base_url = f"{full_prefix}{store.subdomain}/" + platform = getattr(request.state, "platform", None) + platform_original_path = getattr(request.state, "platform_original_path", None) + if platform and platform_original_path and platform_original_path.startswith("/platforms/"): + base_url = f"/platforms/{platform.code}/storefront/{store.store_code}/" + else: + full_prefix = ( + store_context.get("full_prefix", "/storefront/") + if store_context + else "/storefront/" + ) + base_url = f"{full_prefix}{store.store_code}/" - login_url = f"{base_url}storefront/account/login" + login_url = f"{base_url}account/login" logger.debug(f"Redirecting to {login_url}") return RedirectResponse(url=login_url, status_code=302) # Fallback to root for unknown contexts (PLATFORM) diff --git a/app/modules/billing/templates/billing/admin/subscription-tiers.html b/app/modules/billing/templates/billing/admin/subscription-tiers.html index cf8f891d..8d87d375 100644 --- a/app/modules/billing/templates/billing/admin/subscription-tiers.html +++ b/app/modules/billing/templates/billing/admin/subscription-tiers.html @@ -352,7 +352,7 @@ x-transition:leave="transform transition ease-in-out duration-300" x-transition:leave-start="translate-x-0" x-transition:leave-end="translate-x-full" - class="w-screen max-w-lg" + class="w-screen max-w-lg h-full" >
diff --git a/app/modules/cart/templates/cart/storefront/cart.html b/app/modules/cart/templates/cart/storefront/cart.html index 6f7e2efd..917cce93 100644 --- a/app/modules/cart/templates/cart/storefront/cart.html +++ b/app/modules/cart/templates/cart/storefront/cart.html @@ -14,7 +14,7 @@ @@ -40,7 +40,7 @@

Add some products to get started!

- + Browse Products
@@ -154,7 +154,7 @@ Proceed to Checkout - + Continue Shopping @@ -309,9 +309,9 @@ document.addEventListener('alpine:init', () => { if (!token) { // Redirect to login with return URL - window.location.href = '{{ base_url }}storefront/account/login?return={{ base_url }}storefront/checkout'; + window.location.href = '{{ base_url }}account/login?return={{ base_url }}checkout'; } else { - window.location.href = '{{ base_url }}storefront/checkout'; + window.location.href = '{{ base_url }}checkout'; } } }; diff --git a/app/modules/catalog/templates/catalog/storefront/category.html b/app/modules/catalog/templates/catalog/storefront/category.html index cad1237f..84451a46 100644 --- a/app/modules/catalog/templates/catalog/storefront/category.html +++ b/app/modules/catalog/templates/catalog/storefront/category.html @@ -13,7 +13,7 @@ @@ -61,14 +61,14 @@