When including or displaying a page using the include or display macro, identical headings on the including and included page lead to duplicate ids.
Steps to reproduce:
- Create a page A with content = Heading =
- Create a page B with content
- Save and view the page.
The two headings have different ids.
The two headings have the same id.