Selaa lähdekoodia

#185 Navigation Breadcrumb - Identify iTop by the Database and URL (to avoid messing up breadcrumbs when navigating between several instances of iTop - still buggy in case of reinstall)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4024 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 vuotta sitten
vanhempi
commit
224ca20bb6
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      application/itopwebpage.class.inc.php

+ 2 - 1
application/itopwebpage.class.inc.php

@@ -739,7 +739,8 @@ EOF
 		$iBreadCrumbMaxCount = utils::GetConfig()->Get('breadcrumb.max_count');
 		if ($iBreadCrumbMaxCount > 1)
 		{
-			$siTopInstanceId = json_encode(APPROOT);
+			$oConfig = MetaModel::GetConfig();
+			$siTopInstanceId = json_encode(utils::GetAbsoluteUrlAppRoot().'==='.$oConfig->GetDBHost().'/'.$oConfig->GetDBName().'/'.$oConfig->GetDBSubname());
 			if ($this->bBreadCrumbEnabled)
 			{
 				if (is_null($this->sBreadCrumbEntryId))