Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(agent-v2): link API reference to agent guide (#39534)

yyhdcd40d603c7a
diff --git a/e2e/features/step-definitions/agent-v2/access-point-service-api.steps.ts b/e2e/features/step-definitions/agent-v2/access-point-service-api.steps.ts
index 2c9999e9e11..c6f62ccc6f8 100644
--- a/e2e/features/step-definitions/agent-v2/access-point-service-api.steps.ts
+++ b/e2e/features/step-definitions/agent-v2/access-point-service-api.steps.ts
@@ -149,7 +149,7 @@ When('I open the Agent v2 API Reference', async function (this: DifyWorld) {
const apiReferenceLink = page.getByRole('link', { name: 'API Reference' })
await expect(apiReferenceLink).toBeVisible()
- await expect(apiReferenceLink).toHaveAttribute('href', /\/api-reference\/guides\/get-started/)
+ await expect(apiReferenceLink).toHaveAttribute('href', /\/api-reference\/guides\/agent/)
await expect(apiReferenceLink).toHaveAttribute('target', '_blank')
const [apiReferencePage] = await Promise.all([
@@ -164,7 +164,7 @@ Then('the Agent v2 API Reference should open in a new tab', async function (this
const apiReferencePage = this.agentBuilder.accessPoint.apiReferencePage
if (!apiReferencePage) throw new Error('No Agent v2 API Reference page was opened.')
- await expect(apiReferencePage).toHaveURL(/\/api-reference\/guides\/get-started/)
+ await expect(apiReferencePage).toHaveURL(/\/api-reference\/guides\/agent/)
await apiReferencePage.close()
this.agentBuilder.accessPoint.apiReferencePage = undefined
})
diff --git a/web/features/agent-v2/agent-detail/access/components/service-api-access-card.tsx b/web/features/agent-v2/agent-detail/access/components/service-api-access-card.tsx
index c2b91c303b2..4ad332302a9 100644
--- a/web/features/agent-v2/agent-detail/access/components/service-api-access-card.tsx
+++ b/web/features/agent-v2/agent-detail/access/components/service-api-access-card.tsx
@@ -88,7 +88,7 @@ export function ServiceApiAccessCard({ agentId }: { agentId: string }) {
</span>
</Button>
<a
- href={docLink('/api-reference/guides/get-started')}
+ href={docLink('/api-reference/guides/agent')}
target="_blank"
rel="noreferrer"
aria-label={t(($) => $['agentDetail.access.serviceApi.actions.apiReference'])}