From 2c23077834e6f12dee843d9e06b6f5fa0607e760 Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Thu, 11 Jul 2019 11:23:08 +0200
Subject: [PATCH] FEAT #10938 TIME 0:10 reset routev2 in home link

---
 apps/maarch_entreprise/js/functions.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/maarch_entreprise/js/functions.js b/apps/maarch_entreprise/js/functions.js
index 87b6815f4d4..06fad8ae034 100755
--- a/apps/maarch_entreprise/js/functions.js
+++ b/apps/maarch_entreprise/js/functions.js
@@ -3856,7 +3856,7 @@ function checkMultiIndexingGroup(url) {
 
 function writeLocationBar(path,label,level) {
     if ($j('#ariane a:last').length == 0) {
-        var home = $j('<a href="'+path+'">'+label+'</a>');
+        var home = $j('<a href="'+path+'" onclick="localStorage.setItem(\'PreviousV2Route\', \'/home\');">'+label+'</a>');
         home.appendTo('#ariane');
     } else {
         var elem = $j('<a href="'+path+'&level='+level+'">'+label+'</a>');
-- 
GitLab