"Template for Basic page not found" error after adding new template
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3571599. -->
Reported by: [tedbow](https://www.drupal.org/user/240860)
Related to !549
>>>
<h3 id="problem">Problem/Motivation</h3>
<p>When clicking "Add new template" and submitting the dialog, the error "Template for Basic page not found." appears. However, after refreshing the page, the correct behavior is displayed: "No preview content is available" with a link for "Add new basic page".</p>
<h3 id="steps">Steps to reproduce</h3>
<p>1. Click "Add new template"<br>
2. Submit the dialog<br>
3. Observe the error message: "Template for Basic page not found."<br>
4. Refresh the page<br>
5. Now the correct behavior appears: "No preview content is available" with "Add new basic page" link</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>Fix the initial state after adding a new template so the correct message and link appear without requiring a page refresh.</p>
> Related issue: [Issue #3538104](https://www.drupal.org/node/3538104)
> Related issue: [Issue #3546760](https://www.drupal.org/node/3546760)
issue