Edit page link in secondary nav does not support content moderation
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3403332. -->
Reported by: [andy_w](https://www.drupal.org/user/2581622)
Related to !36
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Currently the edit node button on the secondary navigation works great when you are viewing a node, however when you are viewing the latest version it just shows a back to admin link, could this be updated to show the same edit link?</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>1. Create a published node<br>
2. Go to view node and see the "Edit x" button in the secondary nav<br>
3. Create a new draft of that node<br>
4. Go to review ("node/x/latest")<br>
5. See that the secondary nav button now says "Back to admin"</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>When checking against the canonical route check for both canonical and latest_version as the latter part of the route name.</p>
issue