Prevent duplicate ids in secondary toolbar: template change needed to faciliate larger fix in Gin Toolbar
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3373688. -->
Reported by: [bnjmnm](https://www.drupal.org/user/2369194)
Related to !271
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Any toolbar item that appears in the primary and secondary toolbars</p>
<p>Most of the logic to fix these duplicate ids is addressed in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/gin_toolbar/-/work_items/3373687" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/gin_toolbar/-/work_items/3373687</a></span>, but it requires updating the secondary toolbar template to look for the presence of secondary-specific tabs and trays and use those when available. </p>
<p>I recommend this going in first as it doesn't result in anything different on it's own, and makes it easier to manually test <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/gin_toolbar/-/work_items/3373687" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/gin_toolbar/-/work_items/3373687</a></span>.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue