diff --git a/src/frontend/src/features/auth/utils/authUrl.ts b/src/frontend/src/features/auth/utils/authUrl.ts index 111d1399..be5f4cd6 100644 --- a/src/frontend/src/features/auth/utils/authUrl.ts +++ b/src/frontend/src/features/auth/utils/authUrl.ts @@ -1,5 +1,5 @@ import { apiUrl } from '@/api/apiUrl' -export const authUrl = () => { - return apiUrl('/authenticate') +export const authUrl = (silent = false, returnTo = window.location.href) => { + return apiUrl(`/authenticate?silent=${encodeURIComponent(silent)}&returnTo=${encodeURIComponent(returnTo)}`) }