diff --git a/scripts/build_ifta_quarterly_campaign.py b/scripts/build_ifta_quarterly_campaign.py index f67a8ec..fcaff4c 100644 --- a/scripts/build_ifta_quarterly_campaign.py +++ b/scripts/build_ifta_quarterly_campaign.py @@ -176,7 +176,10 @@ def _ifta_filed_token(dot: str) -> str: def _filed_link(dot: str) -> str: - return f"{tc.SITE_DOMAIN}/api/v1/ifta/filed?dot={dot}&t={_ifta_filed_token(dot)}" + # The "I already filed" handler is an API route, so it must hit the API host + # (api.performancewest.net), NOT the Astro site host (performancewest.net). + api_base = os.getenv("PUBLIC_API_URL", "https://api.performancewest.net").rstrip("/") + return f"{api_base}/api/v1/ifta/filed?dot={dot}&t={_ifta_filed_token(dot)}" def main() -> int: