Преглед на файлове

bug fix from prev commit

Bachir Soussi Chiadmi преди 5 години
родител
ревизия
2e73cacb27
променени са 2 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 0 0
      web/themes/custom/edlptheme/assets/dist/scripts/main.min.js
  2. 7 1
      web/themes/custom/edlptheme/assets/scripts/main.js

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
web/themes/custom/edlptheme/assets/dist/scripts/main.min.js


+ 7 - 1
web/themes/custom/edlptheme/assets/scripts/main.js

@@ -2132,7 +2132,13 @@
 
       if(typeof pop_state == "undefined" || !pop_state){
         console.log('backToFrontPage push state');
-        history.pushState({home:true}, null, _base_url+drupalSettings.path.currentLanguage);
+        state = {
+          home:true,
+          context:"home",
+          caller:null
+        }
+        _states_history.unshift(state);
+        history.pushState(state, null, _base_url+drupalSettings.path.currentLanguage);
       }
     }
 

Някои файлове не бяха показани, защото твърде много файлове са промени