Hello,
I would like to report a potential issue with the Dynamic Content Collection element in SP Page Builder.
Description of the problem
I created a collection of cards using Dynamic Content, where each item contains:
- A title (with a dynamic link)
- A description (plain text)
- Additional structured elements
The expected behavior is:
- The link should be applied only to the title
- Each card should behave independently
However, the actual behavior is:
- The link is being applied to multiple elements inside the card
- In some cases, the link from one item is affecting the next item in the collection
- This results in incorrect clickable areas and unexpected navigation
Technical observations
From inspecting the generated HTML, each item contains multiple <a> tags, for example:
- One wrapping the title
- Another wrapping the description
This leads to situations where:
- Multiple anchor tags exist inside the same container
- The browser appears to "merge" or extend clickable areas
- Links seem to “bleed” into the next collection item
Additionally:
- The collection addon itself also includes a global
link configuration (even when not actively used)
- The issue occurs even when links are only assigned at the field level
Expected behavior
- Each dynamic item should be fully isolated
- Links should only wrap the specific field they are assigned to (e.g., title only)
- No link should affect sibling elements or subsequent items
Actual behavior
- Links are applied beyond their intended scope
- Clickable areas extend incorrectly
- Links from one item may affect the next item
Reproduction context
- SP Page Builder (latest version)
- Using Dynamic Content Collection
- Multiple
dynamic_content_text elements inside each item
- Each field has its own dynamic link
Additional note
This appears to be related to how the HTML is rendered for repeated items.
It may be caused by improper handling of anchor tags inside the collection loop, resulting in invalid or overlapping DOM structure.
Request
Could you please confirm if this is a known issue?
If not, I would appreciate guidance or a fix to ensure:
- Proper isolation of links per item
- Valid HTML structure within dynamic collections
Thank you!