|
@@ -1,20 +1,2 @@
|
|
|
-console.log('EDLP THEME HISTORY.js');
|
|
|
-// var edlp is provided by edlp_ajax.module file
|
|
|
-if(edlp.redirect){
|
|
|
- console.log('history redirect', edlp);
|
|
|
- console.log('window.location', window.location);
|
|
|
- // window.localStorage.setItem('edlp_origin_path', edlp.sys_path.replace(/^\//, ''));
|
|
|
- edlp.sys_path = edlp.sys_path.replace(/^\//, '');
|
|
|
|
|
|
- // window.localStorage.setItem('edlp_origin_url', window.location.pathname);
|
|
|
- edlp.url = window.location.pathname;
|
|
|
-
|
|
|
- // window.localStorage.setItem('edlp_origin_hash', window.location.hash);
|
|
|
- edlp.hash = window.location.hash;
|
|
|
-
|
|
|
- window.localStorage.setItem('edlp_origin', JSON.stringify(edlp));
|
|
|
- // redirect to home
|
|
|
- window.location.replace(window.location.origin+'/'+edlp.lang_code);
|
|
|
-}else{
|
|
|
- console.log('history do not redirect');
|
|
|
-}
|
|
|
+void 0;if(edlp.redirect){void 0;void 0;edlp.sys_path=edlp.sys_path.replace(/^\//,'');edlp.url=window.location.pathname;edlp.hash=window.location.hash;window.localStorage.setItem('edlp_origin',JSON.stringify(edlp));window.location.replace(window.location.origin+'/'+edlp.lang_code);}else{void 0;}
|