diff --git a/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy b/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy index 261e618ffe..4eb6feda70 100644 --- a/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy +++ b/framework/common/webcommon/WEB-INF/actions/includes/ShowPortalPage.groovy @@ -29,6 +29,9 @@ if(!portalPageId){ if (portalPageId) { portalPage = delegator.findByPrimaryKey("PortalPage", [portalPageId : portalPageId]); + if (portalPage.parentPortalPageId && !parameters.parentPortalPageId) { + parameters.parentPortalPageId = portalPage.parentPortalPageId; + } } if (!portalPage) { diff --git a/framework/example/widget/example/CommonScreens.xml b/framework/example/widget/example/CommonScreens.xml index 33ab125597..a1a6830f2e 100644 --- a/framework/example/widget/example/CommonScreens.xml +++ b/framework/example/widget/example/CommonScreens.xml @@ -40,9 +40,9 @@ under the License. - - + + +