Redirection into Home/Customer Center pages is specified inside the source code in SCA. It checks some specific condition (Configuration field values) and redirects into these 2 pages based on the field values.
//Default code-part
redirect: function (context, response)
{
var url_options = _.parseUrlOptions(window.location.search)
, touchpoints = response.touchpoints
, isPasswordReset = url_options.passwdret
, self = this;
// Track Login Event
this.trackEvent(function ()
{
if (!isPasswordReset && (url_options.is === 'checkout' || url_options.origin === 'checkout'))
{
self.refreshApplication(response);
}
else
{
// if we know from which touchpoint the user is coming from
if (url_options.origin && touchpoints[url_options.origin])
{
// we save the URL to that touchpoint
var url = touchpoints[url_options.origin];
// if there is an specific hash
if (url_options.origin_hash)
{
// we add it to the URL as a fragment
url = _.addParamsToUrl(url, {fragment: url_options.origin_hash});
}
window.location.href = url;
}
else
{
//We've got to disable passwordProtectedSite feature if customer registration is disabled.
if(Configuration.getRegistrationType() !== 'disabled' && SC.ENVIRONMENT.siteSettings.siteloginrequired==='T')
{
window.location.href = touchpoints.home;
}
else
{
// otherwise we need to take it to the customer center
window.location.href = touchpoints.customercenter;
}
}
}
});
}
If the user needs to change the redirecting page (Home/Account), we need to change the configuration field values specified inside the code or customize the code itself.