From 0958401b3bbece9a7335ee118b80dfa361a2eabd Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 17 Nov 2023 00:56:30 +0300 Subject: [PATCH] Probably fixes losing query params when deployed via Amplify. --- src/components/AuthPage/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AuthPage/index.tsx b/src/components/AuthPage/index.tsx index 7678877..efc2e74 100644 --- a/src/components/AuthPage/index.tsx +++ b/src/components/AuthPage/index.tsx @@ -46,13 +46,13 @@ function AuthPage({ padLockApng }: AuthPageProps): JSX.Element { const handleAppleAuth = async () => { window.location.href = routes.server.appleAuth( - encodeURI(`${window.location.origin}/auth/result`) + encodeURI(`${window.location.origin}/auth/result/`) ); }; const handleGoogleAuth = async () => { window.location.href = routes.server.googleAuth( - encodeURI(`${window.location.origin}/auth/result`) + encodeURI(`${window.location.origin}/auth/result/`) ); };