Skip to content

Same applies switch used twice through a snippet is not rendered properly #2334

Closed

Description

@eedugon

Describe the bug

When importing an applies_switch through a snippet multiple times in the same page, the content is only rendered in one place.

For example:

  • snippet file: eck_rcs_external_endpoint_switch.md
% Endpoint identification for multiple deployment types
:::::::{applies-switch}

::::::{applies-item} ess:
Obtain the endpoint from the **Security** page of the ECH deployment you want to use as a remote. Copy the **Proxy address** from the **Remote cluster parameters** section, and replace its port with `9443`, which is the port used by the remote cluster server interface.
::::::

::::::{applies-item} ece:
Obtain the endpoint from the **Security** page of the ECE deployment you want to use as a remote. Copy the **Proxy address** from the **Remote cluster parameters**, and replace its port with `9443`, which is the port used by the remote cluster server interface.
::::::

::::::{applies-item} self:
The endpoint depends on your network architecture and the selected connection mode (`sniff` or `proxy`). It can be one or more {{es}} nodes, or a TCP (layer 4) load balancer or reverse proxy in front of the cluster, as long as the local cluster can reach them over port `9443`.

If you are configuring `sniff` mode, set the seeds parameter instead of the proxy address. Refer to the [connection modes](/deploy-manage/remote-clusters/connection-modes.md) documentation for details and connectivity requirements of each mode.
::::::

:::::::
  • doc-content file is importing the snippet multiple times (obviously in different parts of the doc):
      :::{include} _snippets/eck_rcs_external_endpoint_switch.md
      :::

      :::{include} _snippets/eck_rcs_external_endpoint_switch.md
      :::

The previous is rendered like:

Image

As you can see, the second one is empty. When loading the page the behavior is the opposite. Only the second occurrence renders the text, and the first one appears empty. Probably related with internal HTML ids or similar.

I'm testing this with 0.92.0 version of docs-builder.

Expected behavior

Both should be rendered equally and with the same content.

Steps to reproduce

Already provided.

Tooling

  • docs-builder
  • migration tooling
  • I'm not sure

Activity

  1. self-assigned this
    on Dec 11, 2025
  2. reakaleek commented on Dec 11, 2025

    @reakaleek
    Member

    Will be fixed by #2340

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions