diff --git a/app/exceptions/error_renderer.py b/app/exceptions/error_renderer.py index 0642121b..ac574cd4 100644 --- a/app/exceptions/error_renderer.py +++ b/app/exceptions/error_renderer.py @@ -260,8 +260,8 @@ class ErrorPageRenderer: } # Calculate base_url for shop links - access_method = getattr(request.state, "access_method", None) vendor_context = getattr(request.state, "vendor_context", None) + access_method = vendor_context.get('detection_method', 'unknown') if vendor_context else 'unknown' base_url = "/" if access_method == "path" and vendor: # Use the full_prefix from vendor_context to determine which pattern was used