Thursday, February 16, 2012

business catalyst generic secure zone redirect

Generic secure zone in BC doesn't support redirect to other pages.  So here's a solution for your problem.
How to use this function:
/*
Put this after
//<![CDATA[ 
//]]>
*/
function genericRedirect(url){
    var pathName= window.location.pathname;
    var splitThis = pathName.split("?");
    if(splitThis [0]=="/Default.aspx"){
        window.location=(url);
    }
}
/*
Then call or use the function with your landing page's url or link.
*/
genericRedirect("/your url here!!");

Hope this will help.

1 comment: