redirect same page after login #755
Unanswered
jamesdesouza
asked this question in
Help
Replies: 1 comment 1 reply
-
I have same problem! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Your question
I'm using localtest.me domain in development mode.
On localtest.me:3000/login page, I have default instance value in order to login.
After auth process, redirect is working normal!
But if I try to login from test.localtest.me:3000/login page (instance value is "test" now), it redirects me to localtest.me:3000/login page!
What are you trying to do
I tought to set redirect url in callbacks like in the codes below
callbacks: { redirect: async (url, baseUrl) => { console.log("CALLBACK redirect", url, baseUrl) return Promise.resolve(url) }, },
Both url and baseUrl are the same! I lost subdomain value.
I can't use env variables as site url because subdomain value will be dynamic.
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions