Make links between pages work in Canvas Workbench
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3586063. -->
Reported by: [wotnak](https://www.drupal.org/user/3558113)
Related to !952
>>>
<h3 id="overview">Overview</h3>
<p><span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3585978" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3585978</a></span> includes page paths in local page json files which allows for linking between pages. But currently the links won't work in Workbench, when clicking on a link targeting another page, the default Workbench view will be opened in a new tab. It would be much more useful if the link would navigate to the target page in Workbench.</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>Update <code>resolveWorkbenchPreviewNavigation</code> to navigate to a page in Workbench if the clicked link target matches the path of one of the pages.</p>
<h3 id="ui-changes">User interface changes</h3>
<p>n/a</p>
> Related issue: [Issue #3585978](https://www.drupal.org/node/3585978)
> Related issue: [Issue #3575872](https://www.drupal.org/node/3575872)
issue