From d8b7da1796d97b37cb89007f3cb35d0909a16a16 Mon Sep 17 00:00:00 2001 From: David Inga Date: Thu, 30 Mar 2023 15:05:50 +0200 Subject: [PATCH] fixed callback url after login --- client/CHANGELOG.md | 1 + client/src/pages/auth/signin.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/CHANGELOG.md b/client/CHANGELOG.md index 89bd7d64e..827207d6f 100644 --- a/client/CHANGELOG.md +++ b/client/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/). - Replaced Deck.gl map with `react-map-gl` to prepare migration to Layer Manager. [LANDGRIF-812](https://vizzuality.atlassian.net/browse/LANDGRIF-812) ### Fixed +- Fixed callback Url after login [LANDGRIF-1260](https://vizzuality.atlassian.net/browse/LANDGRIF-1260) - Fixed items alignement in the legend. [LANDGRIF-1093](https://vizzuality.atlassian.net/browse/LANDGRIF-1093) - Fixes response error displayed messages. [LANDGRIF-1273](https://vizzuality.atlassian.net/browse/LANDGRIF-1273) - Fixed axios response error type. diff --git a/client/src/pages/auth/signin.tsx b/client/src/pages/auth/signin.tsx index f26006afc..0c0de20d6 100644 --- a/client/src/pages/auth/signin.tsx +++ b/client/src/pages/auth/signin.tsx @@ -44,7 +44,9 @@ const SignIn: NextPageWithLayout = () => { }); if (ok) { - router.push((router.query?.callbackUrl as string) || '/analysis'); + router.push((router.query?.callbackUrl as string) || '/analysis/map', undefined, { + shallow: true, + }); } else { setIsLoading(false); toast.error('Login failed. Your email or password is incorrect.');