We have 2 sites, an English site and a Spanish localization of our English site. When on the English site, the $sys.site.path value points to our English path (something like //Sites/English). However, when on the Spanish site, $sys.site.path still resolves to the English site path.
Is there anything I can do to ensure that this updates appropriately? As part of our existing code, we bind the value of $sys.site.path to a variable called $sitepath. Currently, the only solution I can think of is forcing a hard coded change based on the $sys.item.getProperty(“rx:sys_lang”).String. If it equals “en-us” (English) then let $sys.site.path set $sitepath as usual, but if it equals “es-us” (Spanish) then force $sitepath to equal “//Sites/Spanish” etc… However, this seems like a solution fraught with many perils and really the wrong way to resolve this anyway.