When a Language Navigation component is in a template structure, or in a blueprint XF inherited to a live copy site, the Navigation Root isn't updated to the Live Copy site, and thus the nav links/languages point to the blueprint site rather than the live copy.
Language Navigation should operate similar to the Navigation component, which takes the configured Navigation Root page and updates it to the current site path before calculating nav links.
The update would be made to LanguageNavigationImpl, using similar logic as NavigationImpl, changing:
public List<NavigationItem> getItems() {
if (items == null) {
PageManager pageManager = currentPage.getPageManager();
rootPage = pageManager.getPage(navigationRoot);
if (rootPage != null) {
When a
Language Navigation
component is in a template structure, or in a blueprint XF inherited to a live copy site, theNavigation Root
isn't updated to the Live Copy site, and thus the nav links/languages point to the blueprint site rather than the live copy.Language Navigation should operate similar to the
Navigation
component, which takes the configured Navigation Root page and updates it to the current site path before calculating nav links.The update would be made to
LanguageNavigationImpl
, using similar logic asNavigationImpl
, changing:to