Nested page renderings don't work properly

Description

Nested page renderings don't work properly. If the rendering of a page, the current page ($page) or an included page ($include.page("My Page")), triggers the rendering of another page, the inner rendering replaces all rendering parameters and erases them when finished. The rest of the outer rendering, including the page layout, will fall back on defaults.

Example

page.vm:

my-info.vm:

If Page 1 contains an info macro, it will be rendered via the my-info.vm template. This template will render Page 2 while Page 1 is still rendering. The inner rendering replaces the parameters (layout and macro overrides) and erases them afterwards. The rest of the outer rendering will consequently fall back on defaults, ignoring the parameters of the outer renderContent call.

Workaround

Don't use nested page renderings. If the inner page is static, consider putting it in a theme template.

Environment

None

Assignee

Unassigned

Reporter

Sync User [K15t]

Labels

Participants

None

Deployment

None

Components

Sprint

None

Fix versions

Configure