We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7a88b4 commit 0a78d4bCopy full SHA for 0a78d4b
src/pages/auth/signin.tsx
@@ -221,10 +221,10 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
221
const { callbackUrl } = context.query;
222
223
if (session) {
224
+ const redirectUrl = env.DEFAULT_HOMEPAGE == '/home' ? '/balances' : env.DEFAULT_HOMEPAGE;
225
return {
226
redirect: {
- destination:
227
- callbackUrl && !Array.isArray(callbackUrl) ? callbackUrl : env.DEFAULT_HOMEPAGE,
+ destination: callbackUrl && !Array.isArray(callbackUrl) ? callbackUrl : redirectUrl,
228
permanent: false,
229
},
230
};
0 commit comments