Prevent CLI pushes from changing existing page path aliases
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3589174. --> Reported by: [balintbrews](https://www.drupal.org/user/613760) Related to !1084 >>> <h3 id="overview">Overview</h3> <p>Canvas page pushes currently allow a local page file to update the path alias of an existing remote page when the UUID matches. This can unintentionally change the public URL of an existing page during a content push, and/or cause other issues.</p> <p>Steps to reproduce:</p> <ol> <li>Pull or create a local page file with a UUID matching an existing remote page.</li> <li>Change the local page file's <code>path</code> value to a different alias.</li> <li>Run <code>canvas push --include-pages</code>.</li> <li>The existing remote page can be updated with the new alias.</li> </ol> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Add remote-aware page validation during <code>canvas push</code> so existing pages are checked against their remote path aliases before pushing.</p> <p>If a local page UUID matches an existing remote page and the normalized local <code>path</code> differs from the normalized remote path, report a validation error and stop the push.</p> > Related issue: [Issue #3589077](https://www.drupal.org/node/3589077)
issue