on 2023 Oct 31 6:02 AM
Hi,
How to redirect user when using social login or custom button to profile update page that is also a hosted page?
Other question, how to redirect user after logging in using social login to a different page that is not logged in, and redirect if not? Is that custom code implementation?
Regards,
Jonathan
Request clarification before answering.
Hi Jonathan,
Since the initial page where login happens is not hosted, that we can treat redirect to hosted page as redirect to any other URL after login. There is no special logic/place to configure hosted page to use after social login
So you have to major options to do that:
1. On the initial page where login happen you can either pass redirectUrl parameter to accounts.showScreenSet if you use screen set to login or to accounts.socialLogin if you use custom implementation without screen sets.
2. Subscribe to onLogin event and add custom JS that will redirect to the page you need depending on errorCode of the response or any other logic you'll choose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
18 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.