Primary local tasks not rendering on entity routes due to striptags filter
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3409899. -->
Reported by: [karlshea](https://www.drupal.org/user/294283)
Related to !348
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Primary local tasks (View/Edit/Revisions etc) are invisible on entity pages or any other page where the block renders as a lazy builder.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Use Gin on Drupal 10.2, edit an entity.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Unclear, but that check can't rely on rendering that region.</p>
<p>The problem is in page.html.twig here: <code>{% if page.header|without(page_title_block)|render|striptags|trim is not empty %}</code></p>
<p>That block is a lazy builder on some pages, which means when tags are stripped it will be empty since there's no text content until later.</p>
<p>This was introduced in issue <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/gin/-/work_items/3396746" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/gin/-/work_items/3396746</a></span> (<a href="https://git.drupalcode.org/project/gin/-/commit/233700f678b77049d547213305d69bed29d3d1cc">commit</a>)</p>
> Related issue: [Issue #3396746](https://www.drupal.org/node/3396746)
issue