Skip to content

Commit

Permalink
fixed callback url after login
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsingal committed Apr 12, 2023
1 parent 83016ad commit d8b7da1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion client/src/pages/auth/signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

1 comment on commit d8b7da1

@vercel
Copy link

@vercel vercel bot commented on d8b7da1 Apr 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

landgriffon-client – ./client

landgriffon-client-git-dev-vizzuality1.vercel.app
landgriffon-client.vercel.app
landgriffon-client-vizzuality1.vercel.app

Please sign in to comment.