Hello, Does anyone know if it is possible to change the re-direct when logging into SCA? If so, how easy is it to change? By default a user re-directs to My Account upon a successful login. I would like to change this to an alternative page on our webstore. Any help would be much appreciated
s
Steve Goldberg
11/15/2023, 2:16 PM
With code, yes; with configuration, no
b
Bryce Krah
11/15/2023, 2:16 PM
There's 2 parameters that control it. "origin" which is the touchpoint you want to go to, and then "origin_hash" which is the route
☝🏻 1
👍 1
s
Steve Goldberg
11/15/2023, 2:17 PM
There’s typically two places where use this:
1. LoginRegister.Login.View.redirect()
2. ProductViews.Price.View.getUrlLogin()
You can refer to the modules to see how we do it. But as Bryce says, you’re essentially creating a login link that has both those parameters on them (with appropriate values for the touchpoints and paths) and then putting that link in the place.