diff --git a/src/components/theme/CatalogueViews/AppHeader.jsx b/src/components/theme/CatalogueViews/AppHeader.jsx index 7ce8a55..6d74a3d 100644 --- a/src/components/theme/CatalogueViews/AppHeader.jsx +++ b/src/components/theme/CatalogueViews/AppHeader.jsx @@ -24,6 +24,7 @@ import { getDefaultHeaderImage, } from '@eeacms/volto-forests-theme/actions'; import { getPortlets } from '@eeacms/volto-addons-forest/actions'; +import config from '@plone/volto/registry'; class App extends Component { static propTypes = { @@ -178,7 +179,13 @@ export default compose( { key: 'navigation', promise: ({ location, store: { dispatch } }) => - __SERVER__ && dispatch(getNavigation(getBaseUrl(location.pathname))), + __SERVER__ && + dispatch( + getNavigation( + getBaseUrl(location.pathname), + config.settings.navDepth, + ), + ), }, { key: 'types',