mirror of
https://github.com/langgenius/dify.git
synced 2026-05-09 04:32:58 +08:00
fix: web app auth redirect would miss query string
This commit is contained in:
parent
103ba6ae3b
commit
3fca6b997d
@ -39,7 +39,9 @@ const AuthenticatedLayout = ({ children }: { children: React.ReactNode }) => {
|
||||
const getSigninUrl = useCallback(() => {
|
||||
const params = new URLSearchParams(searchParams)
|
||||
params.delete('message')
|
||||
params.set('redirect_url', pathname)
|
||||
const query = params.toString()
|
||||
const fullPath = query ? `${pathname}?${query}` : pathname
|
||||
params.set('redirect_url', fullPath)
|
||||
return `/webapp-signin?${params.toString()}`
|
||||
}, [searchParams, pathname])
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user