Shopify

How can I redirect users to different pages after SSO depending on where the initiating SSO URL Link is placed?

193 views July 17, 2023 harishsuman 0

You can redirect users to different pages after initiating SSO depending on the format of the SSO Link placed on any page.

The format for the SSO Link is as follows:

https://store.xecurify.com/moas/broker/login/shopify/<store-domain>/account?redirect_endpoint=<endpoint-where-you-want-to-go-after-sso>

  • For example, if you want customers to be redirected to the /cart page after SSO, the SSO link would be:
    https://store.xecurify.com/moas/broker/login/shopify/abc/account?redirect_endpoint=%2Fcart
  • For /collections/all page, the SSO link would be:
    https://store.xecurify.com/moas/broker/login/shopify/abc/account?redirect_endpoint=%2Fcollections%2Fall

**Important**

Note: Please ensure that the redirect_endpoint parameter is in URL-encoded format.

Was this helpful?