Prepare for avoiding full page reloads: move entity type and ID from base path and into routing parameters
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3502887. -->
Reported by: [mglaman](https://www.drupal.org/user/2416470)
Related to !4 !1460
>>>
<h3 id="overview">Overview</h3>
<p>In <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/experience_builder/issues/3502819" title="Status: Closed (fixed)">#3502819: Connect "new page" with API to create new pages</a></span> I wanted to switch the editor to a different page. To do so I need to refresh the page by moving to a new URL and re-mounting the editor. That is because the entity type and ID are part of the base path for the editor. It is entirely contextual to one entity.</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>Have <code>/xb</code> be the base path and the editor has the entity type and ID as part of its routing. This will break a lot of things, probably, like moving to /editor or /preview, etc. But maybe the useNavigation hook can simplify this by always using the entity type and ID and a different hook for changing the main entity being edited.</p>
<h3 id="ui-changes">User interface changes</h3>
> Related issue: [Issue #3529836](https://www.drupal.org/node/3529836)
> Related issue: [Issue #3546163](https://www.drupal.org/node/3546163)
issue