Add to all node routes via entity.node.* type approach
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3538545. -->
Reported by: [markconroy](https://www.drupal.org/user/336910)
Related to !1
>>>
<p>Follow up to <a href="https://github.com/localgovdrupal/localgov_replicate/pull/13">https://github.com/localgovdrupal/localgov_replicate/pull/13</a></p>
<p>At the moment in localgov_replicate.module we are checking for:</p>
<p>$routes = [<br>
'entity.node.canonical',<br>
'entity.node.replicate',<br>
'entity.node.edit_form',<br>
'entity.node.book_outline_form',<br>
'entity.node.delete_form',<br>
'entity.node.version_history',<br>
'entity.node.entity_hierarchy_reorder',<br>
'entity.node.preview_link_generate',<br>
'entity.node.scheduled_transitions',<br>
];</p>
<p>It might be safer to check for something like if $route_name === 'entity.node.*' ...(or some version of $route_name begins with entity.node so if any other module adds a route in the future, we'll catch it.</p>
issue