Summary
Two SLM frontend files were missed by the getSlmApiBase() sweep (#3627). Both hardcode /api/ which breaks in co-located nginx deployments where the SLM API is at /slm/api/.
Files to Fix
| File |
Line |
Code |
autobot-slm-frontend/src/views/AgentsView.vue |
~177 |
fetch(`/api/agents/${selectedAgent.value.agent_id}`, ...) |
autobot-slm-frontend/src/components/InfrastructureWizard.vue |
~223 |
`/api/infrastructure/executions/${currentExecution.value.execution_id}/cancel` |
Fix
In each file:
- Add/extend import:
import { getSlmApiBase } from '@/config/ssot-config'
- Replace
`/api/agents/${...}` → `${getSlmApiBase()}/agents/${...}`
- Replace
`/api/infrastructure/...` → `${getSlmApiBase()}/infrastructure/...`
Verification
cd autobot-slm-frontend
npx vue-tsc --noEmit 2>&1 | grep -v "baseUrl.*deprecated"
grep -rn "'/api/\|\`/api/" src --include="*.ts" --include="*.vue" \
| grep -v "getSlmApiBase\|getBackendUrl\|ssot-config\|//"
# Should return 0 results
Discovered as gap during Phase 5 audit, 2026-04-07.
Summary
Two SLM frontend files were missed by the
getSlmApiBase()sweep (#3627). Both hardcode/api/which breaks in co-located nginx deployments where the SLM API is at/slm/api/.Files to Fix
autobot-slm-frontend/src/views/AgentsView.vuefetch(`/api/agents/${selectedAgent.value.agent_id}`, ...)autobot-slm-frontend/src/components/InfrastructureWizard.vue`/api/infrastructure/executions/${currentExecution.value.execution_id}/cancel`Fix
In each file:
import { getSlmApiBase } from '@/config/ssot-config'`/api/agents/${...}`→`${getSlmApiBase()}/agents/${...}``/api/infrastructure/...`→`${getSlmApiBase()}/infrastructure/...`Verification
Discovered as gap during Phase 5 audit, 2026-04-07.