From 7e151a23ccba723c6d68122550df98d543f3282f Mon Sep 17 00:00:00 2001 From: poduck Date: Mon, 1 Dec 2025 03:50:55 -0500 Subject: [PATCH] fix(api-docs): Use absolute API URL for Interactive Explorer link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Interactive Explorer link was using a relative URL (/v1/docs/), which caused it to open on the current subdomain instead of the API subdomain. This resulted in users being redirected to the dashboard. Changed to use API_BASE_URL to construct the absolute URL, which will correctly point to: - Local: http://lvh.me:8000/v1/docs/ - Production: https://api.smoothschedule.com/v1/docs/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- frontend/src/pages/HelpApiDocs.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/HelpApiDocs.tsx b/frontend/src/pages/HelpApiDocs.tsx index 1a615b2..dde5335 100644 --- a/frontend/src/pages/HelpApiDocs.tsx +++ b/frontend/src/pages/HelpApiDocs.tsx @@ -12,6 +12,7 @@ import { AlertCircle, } from 'lucide-react'; import { useTestTokensForDocs } from '../hooks/useApiTokens'; +import { API_BASE_URL } from '../api/config'; // ============================================================================= // TYPES & CONSTANTS @@ -1111,7 +1112,7 @@ my $response = $ua->get('${SANDBOX_URL}/services/', )}