Wrong page template with gin
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3560907. --> Reported by: [refs](https://www.drupal.org/user/3743599) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The following hook causes Gin to add the theme suggestions page__node for the route frontend_editing.form.</p> <pre>&nbsp; <br>#[Hook('gin_content_form_routes_alter')]<br>&nbsp; public function ginContentFormRoutesAlter(array &amp;$route_names) {<br>&nbsp;&nbsp;&nbsp; // Allow Gin to process the form as it is a content form.<br>&nbsp;&nbsp;&nbsp; $route_names[] = 'frontend_editing.form';<br>&nbsp; }</pre><p>This means that page--frontend-editing is no longer used. Instead, the Gin page template is now applied, which assumes that a toolbar is present. As a result, toolbar.js throws errors, and CKEditor may fail to initialize correctly.</p> <p>There is also a difference in the spacing on the left and right of the paragraph form, depending on whether you are editing a paragraph or adding a new one. This is due to the div with the class layout-container from the Gin Page template.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Remove this hook and use page--frontend-editing. But I don't know why the hook was added.<br> I removed the suggestion for frontend editing routes in my admin theme and it seems to work.</p>
issue