From b70cfb9a3154e512f28ffa42714d0f24b8e72f4c Mon Sep 17 00:00:00 2001 From: Boubaker Khanfir Date: Mon, 16 Sep 2024 16:57:25 +0100 Subject: [PATCH] fix: Fix Reference to PageNotFound in navigation - MEED-7500 - Meeds-io/meeds#2390 (#2393) This change will fix the reference to page name in 'page-not-found' navigation. In addition, this will add an upgrade plugin to reimport pages navigations to update the reference for existing installations. --- .../sites/portal-upgrade-configuration.xml | 43 +++++++++++++++++++ .../conf/sites/portal/global/navigation.xml | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal-upgrade-configuration.xml b/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal-upgrade-configuration.xml index 5c602b59c..45b6e647e 100644 --- a/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal-upgrade-configuration.xml +++ b/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal-upgrade-configuration.xml @@ -421,6 +421,49 @@ + + GlobalSiteNavigationUpdate + addUpgradePlugin + io.meeds.social.upgrade.LayoutUpgradePlugin + + + product.group.id + org.exoplatform.social + + + plugin.execution.order + 120 + + + plugin.upgrade.execute.once + true + + + enabled + true + + + global.upgrade + + + true + + + war:/conf/sites/ + + + portal + + + global + + + merge + + + + + PwaAdministrationPageLayoutUpgrade addUpgradePlugin diff --git a/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/global/navigation.xml b/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/global/navigation.xml index 0af5e3009..3f82d2aa0 100644 --- a/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/global/navigation.xml +++ b/webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/global/navigation.xml @@ -299,7 +299,7 @@ page-not-found SYSTEM - portal::global::pageNotFound + portal::global::page-not-found news-detail