|
@@ -1,13 +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(/^\//, ''));
|
|
|
- window.localStorage.setItem('edlp_origin_url', window.location.pathname);
|
|
|
- window.localStorage.setItem('edlp_origin_hash', window.location.hash);
|
|
|
- // 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;window.localStorage.setItem('edlp_origin_path',edlp.sys_path.replace(/^\//,''));window.localStorage.setItem('edlp_origin_url',window.location.pathname);window.localStorage.setItem('edlp_origin_hash',window.location.hash);window.location.replace(window.location.origin+'/'+edlp.lang_code);}else{void 0;}
|