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.

Update use-document-title.ts to fix favicon.ico path (#23872)

xubo3ac4e122ebf1
diff --git a/web/hooks/use-document-title.ts b/web/hooks/use-document-title.ts
index 2c848a1f562..23789129d0b 100644
--- a/web/hooks/use-document-title.ts
+++ b/web/hooks/use-document-title.ts
@@ -1,6 +1,7 @@
'use client'
import { useGlobalPublicStore } from '@/context/global-public-context'
import { useFavicon, useTitle } from 'ahooks'
+import { basePath } from '@/utils/var'
export default function useDocumentTitle(title: string) {
const isPending = useGlobalPublicStore(s => s.isGlobalPending)
@@ -15,7 +16,7 @@ export default function useDocumentTitle(title: string) {
}
else {
titleStr = `${prefix}Dify`
- favicon = '/favicon.ico'
+ favicon = `${basePath}/favicon.ico`
}
}
useTitle(titleStr)