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